:root {
  --navy-dark: var(--slate-900);
  --navy: var(--brand);
  --navy-light: var(--brand-mid);
  --orange: var(--accent);
  --orange-hover: var(--accent);
  --orange-light: var(--accent-light);







  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--brand) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.reg-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  color: var(--surface);
  padding: 58px 0 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--cta);
}
.reg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--surface) 3%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--surface) 3%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.reg-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.reg-hero h1 span { color: var(--cta); }
.reg-hero p {
  color: var(--slate-300);
  font-size: 1.05rem;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tag {
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--surface) 12%, transparent);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--slate-200);
}

/* WORKSPACE LAYOUT */
.reg-wrapper { padding: 40px 0 60px; }

/* SEARCH & FILTER BAR */
.filter-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.search-input-box {
  position: relative;
  margin-bottom: 16px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-600);
}
.reg-search-input {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  color: var(--slate-900);
  transition: all 0.2s;
}
.reg-search-input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

/* REGULATION CARDS GRID */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .reg-grid { grid-template-columns: 1fr; }
}

.reg-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.reg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 8%, transparent);
}
.reg-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.badge-status {
  background: var(--success-soft);
  color: var(--success-dark);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}
.reg-num {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.reg-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cta);
  margin-bottom: 12px;
}
.reg-desc {
  font-size: 0.86rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.reg-meta-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-top: auto;
}
.reg-meta-box strong { color: var(--text); }

/* EDITORIAL ARTICLE */
.editorial-box {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}
.editorial-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  border-left: 4px solid var(--cta);
  padding-left: 14px;
}
.editorial-p {
  color: var(--slate-700);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
