/*
Theme Name: Xieyiqiu Integrity Intelligence
Theme URI: https://xieyiqiu.com/
Author: Xieyiqiu
Description: Enterprise sports integrity intelligence theme for football anomaly, match-fixing risk education, case review, and public-data research.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: xieyiqiu
*/

:root {
  --bg: #050a12;
  --bg-2: #07111f;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.15);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #eef7ff;
  --muted: #9fb2c8;
  --soft: #dbeafe;
  --green: #00e0a4;
  --green-2: #00d084;
  --blue: #3b82f6;
  --warning: #facc15;
  --danger: #fb7185;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgba(0, 224, 164, 0.18), transparent 34rem),
    radial-gradient(circle at 8% 18%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, #05070d);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(0, 224, 164, 0.06) 42% 43%, transparent 43% 100%),
    linear-gradient(60deg, transparent 0 62%, rgba(59, 130, 246, 0.05) 62% 63%, transparent 63% 100%);
  opacity: 0.62;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(5, 10, 18, 0.78);
  border-bottom: 1px solid var(--line-soft);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 10, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 25px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 224, 164, 0.95), rgba(59, 130, 246, 0.85)),
    #102032;
  box-shadow: 0 0 32px rgba(0, 224, 164, 0.34);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-menu,
.footer-menu {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu li,
.footer-menu li {
  display: contents;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 10px 11px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 19px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #00160f;
  box-shadow: 0 12px 38px rgba(0, 224, 164, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--line);
}

.section {
  padding: 92px 0;
}

.hero {
  position: relative;
  padding: 94px 0 112px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 34px 0 auto;
  height: 620px;
  background:
    radial-gradient(circle at 72% 34%, rgba(0, 224, 164, 0.16), transparent 18rem),
    radial-gradient(circle at 28% 22%, rgba(59, 130, 246, 0.16), transparent 20rem);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.76fr);
  gap: 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 22px rgba(0, 224, 164, 0.8);
}

.hero h1 {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1 .accent {
  color: var(--green);
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 720px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: var(--line-soft);
}

.hero-proof div {
  padding: 17px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--text);
  font-size: 14px;
}

.hero-proof span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.trust-pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.risk-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)),
    rgba(9, 20, 36, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
}

.risk-panel::before {
  content: "";
  position: absolute;
  inset: -25% -35% auto auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 224, 164, 0.32), transparent 68%);
}

.risk-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(0, 224, 164, 0.08));
  pointer-events: none;
}

.panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  font-size: 14px;
  color: var(--muted);
}

.panel-id {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.data-rows {
  position: relative;
  padding: 18px 24px 24px;
}

.panel-pitch {
  position: relative;
  height: 190px;
  margin: 0 24px 20px;
  border: 1px solid rgba(0, 224, 164, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 224, 164, 0.08), transparent 7rem);
  background-size: 28px 28px, 28px 28px, auto;
  overflow: hidden;
}

.pitch-line {
  position: absolute;
  inset: 22px 50%;
  width: 1px;
  background: rgba(0, 224, 164, 0.28);
}

.pitch-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 24px rgba(0, 224, 164, 0.9);
}

.dot-a { left: 22%; top: 34%; }
.dot-b { left: 58%; top: 48%; }
.dot-c { left: 74%; top: 24%; background: var(--blue); box-shadow: 0 0 24px rgba(59, 130, 246, 0.8); }

.panel-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 24px 22px;
  color: var(--muted);
  font-size: 13px;
}

.panel-footer strong {
  color: var(--green);
}

.data-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-label {
  color: var(--soft);
  font-weight: 750;
}

.data-value {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 18px rgba(0, 224, 164, 0.5);
}

.metrics-grid,
.solutions-grid,
.insights-grid {
  display: grid;
  gap: 18px;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.solution-card,
.insight-card,
.method-card,
.compliance {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.metric-card {
  position: relative;
  padding: 24px;
  min-height: 158px;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px auto;
  width: 74px;
  height: 28px;
  border-bottom: 2px solid rgba(0, 224, 164, 0.55);
  border-right: 2px solid rgba(0, 224, 164, 0.35);
  transform: skewX(-18deg);
}

.metric-label {
  display: inline-flex;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.metric-card strong {
  display: block;
  color: var(--green);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card span {
  display: block;
  margin-top: 14px;
  color: var(--soft);
  font-weight: 680;
}

.metric-card em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-head p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.solutions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card {
  position: relative;
  min-height: 255px;
  padding: 26px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.solution-card::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(0, 224, 164, 0.26);
  background:
    linear-gradient(135deg, rgba(0, 224, 164, 0.16), transparent),
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.07) 9px 10px);
}

.solution-card:hover,
.insight-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 224, 164, 0.42);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 70px rgba(0, 224, 164, 0.08);
}

.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #03140f;
  background: var(--green);
  font-weight: 900;
}

.solution-label {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.solution-card h3,
.insight-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.solution-card p,
.insight-card p,
.method-card p {
  color: var(--muted);
}

.solution-card a,
.insight-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 18px;
  color: var(--green);
  font-weight: 780;
}

.solution-card a::after,
.insight-card a::after {
  content: "→";
  margin-left: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 44px;
  align-items: center;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.feature-copy p {
  color: var(--soft);
  font-size: 18px;
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.signal-item {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
}

.method-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.13), rgba(0, 224, 164, 0.06)),
    var(--panel);
}

.method-topline,
.method-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.method-topline strong {
  color: var(--green);
}

.line-chart {
  height: 270px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 80% 25%, rgba(0, 224, 164, 0.24), transparent 16rem);
  background-size: 42px 42px, 42px 42px, auto;
  position: relative;
  overflow: hidden;
}

.line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.method-legend {
  margin-top: 16px;
  justify-content: flex-start;
}

.method-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
}

.legend-green { background: var(--green); }
.legend-blue { background: var(--blue); }

.insights-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.insights-groups {
  display: grid;
  gap: 34px;
}

.insight-group {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 26px);
  background:
    radial-gradient(circle at 0 0, rgba(0, 224, 164, 0.07), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.insight-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-group-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-group-head strong {
  color: var(--text);
  font-size: clamp(20px, 2.3vw, 28px);
  letter-spacing: -0.04em;
}

.insights-grid.insight-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  min-height: 235px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.insight-meta time {
  color: var(--muted);
  font-size: 12px;
}

.insight-card .tag {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.insight-card p {
  flex: 1;
}

.related-block {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.related-block h2 {
  margin-bottom: 18px;
}

.compliance {
  padding: clamp(26px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(0, 224, 164, 0.18), rgba(59, 130, 246, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.compliance strong {
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.32);
  padding: 54px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.custom-logo-wrap,
.custom-logo-link {
  display: inline-flex;
}

.custom-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 12px;
}

.archive-index {
  min-height: 58vh;
}

.pagination {
  margin-top: 32px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: #a9b8c8;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.28);
}

.archive-hero {
  padding-bottom: 28px;
}

.seo-copy {
  max-width: 860px;
  margin-top: 22px;
  border: 1px solid rgba(0, 224, 164, 0.22);
  border-radius: 22px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 224, 164, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.seo-copy h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.archive-hero h1,
.single-report h1 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.filter-chip span {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  border-color: rgba(0, 224, 164, 0.46);
  box-shadow: 0 0 24px rgba(0, 224, 164, 0.12);
}

.archive-grid,
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.database-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.database-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, border-color 180ms ease;
}

.database-row:last-child {
  border-bottom: 0;
}

.database-row:hover {
  background: rgba(0, 224, 164, 0.045);
}

.row-code,
.file-code {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-content h2,
.report-card h2 {
  margin: 9px 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.row-content h2 a,
.report-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.row-content p,
.report-card p {
  margin: 0;
  color: var(--muted);
}

.row-link {
  white-space: nowrap;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.report-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.report-card {
  min-height: 260px;
}

.archive-aside {
  display: grid;
  gap: 18px;
}

.sticky-aside {
  position: sticky;
  top: 112px;
}

.side-panel,
.empty-panel,
.article-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(7, 17, 31, 0.78);
  box-shadow: var(--shadow);
}

.side-panel,
.empty-panel {
  padding: 24px;
}

.side-panel h2,
.empty-panel h2 {
  margin: 8px 0 14px;
  color: var(--text);
  font-size: 22px;
}

.compact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.compact-list li {
  padding-left: 18px;
  position: relative;
}

.compact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 224, 164, 0.45);
}

.compliance-mini {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.article-panel {
  padding: clamp(28px, 5vw, 56px);
}

.single-report {
  padding-top: 124px;
}

.lead {
  max-width: 780px;
  color: #c6d4e4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0;
}

.article-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 12px;
}

.thumbnail-frame {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
}

.thumbnail-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.article-content {
  color: #d7e0eb;
  font-size: 18px;
  line-height: 1.9;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 2em;
  color: var(--text);
  line-height: 1.2;
}

.article-content a {
  color: var(--green);
}

.article-content blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 20px;
  color: #c6d4e4;
  background: rgba(0, 224, 164, 0.035);
}

.article-compliance {
  margin-top: 42px;
  padding: 24px;
}

.article-compliance p {
  margin: 10px 0 0;
}

.meta-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-table li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.meta-table li:last-child {
  border-bottom: 0;
}

.meta-table span,
.mini-grid span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.meta-table strong,
.mini-grid strong {
  color: var(--text);
  font-family: var(--mono);
}

.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.mini-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.copyright {
  margin-top: 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-note {
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 10, 18, 0.96);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .risk-panel {
    max-width: 720px;
  }

  .metrics-grid,
  .solutions-grid,
  .insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    min-height: 72px;
  }

  .logo {
    font-size: 21px;
  }

  .nav-actions .btn {
    display: none;
  }

  .section,
  .hero {
    padding: 54px 0;
  }

  .trust-row,
  .hero-proof,
  .metrics-grid,
  .solutions-grid,
  .insights-grid,
  .signal-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .risk-panel {
    border-radius: 22px;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 14px;
  }

  .hero h1 {
    letter-spacing: -0.055em;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .panel-head,
  .panel-footer,
  .method-topline,
  .insight-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-pitch {
    height: 150px;
    margin-inline: 16px;
  }

  .data-rows,
  .panel-head,
  .panel-footer {
    padding-inline: 16px;
  }

  .solution-card,
  .insight-card,
  .metric-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .archive-grid,
  .single-layout,
  .report-matrix {
    grid-template-columns: 1fr;
  }

  .sticky-aside {
    position: static;
  }

  .database-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .row-link {
    justify-self: start;
  }

  .insights-grid.insight-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .archive-hero h1,
  .single-report h1 {
    font-size: 38px;
  }

  .article-panel,
  .side-panel,
  .empty-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .archive-filters {
    flex-direction: column;
  }

  .filter-chip {
    justify-content: space-between;
  }

  .insights-grid.insight-grid-three {
    grid-template-columns: 1fr;
  }

  .insight-group-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
