/**
 * Planning → Regulatory compact goldwash card stack (shared Planning shell).
 */

#oa-plan-regulatory.oa-plan-section {
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  max-width: 100%;
}

.oa-plan-body--regulatory-v2 {
  padding: 12px 0 0 !important;
  min-width: 0;
  overflow-x: hidden;
}

#oa-plan-regulatory .oa-rg-intro {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted, #9a9488);
  max-width: 78ch;
}

#oa-plan-regulatory .oa-rg-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#oa-plan-regulatory .oa-rg-card {
  border: 1px solid rgba(197, 154, 53, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.07) 0%, rgba(20, 17, 14, 0.96) 100%),
    #161310;
  padding: 14px 16px;
  min-width: 0;
  min-height: 0;
}

#oa-plan-regulatory .oa-rg-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#oa-plan-regulatory .oa-rg-card__lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

#oa-plan-regulatory .oa-rg-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 53, 0.35);
  background: rgba(197, 154, 53, 0.08);
  color: var(--brand-gold, #c59a35);
}

#oa-plan-regulatory .oa-rg-card__title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary, #f2ece0);
}

#oa-plan-regulatory .oa-rg-card__help {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, #9a9488);
}

#oa-plan-regulatory .oa-rg-card-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--brand-gold, #c59a35);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  white-space: nowrap;
}

#oa-plan-regulatory .oa-rg-card-link:hover {
  color: #e0bb62;
}

#oa-plan-regulatory .oa-rg-card-link:disabled {
  opacity: 0.55;
  cursor: wait;
}

#oa-plan-regulatory .oa-rg-notice,
#oa-plan-regulatory .oa-rg-error {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #d8d0c2;
}

#oa-plan-regulatory .oa-rg-key-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 16px 24px;
}

#oa-plan-regulatory .oa-rg-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

#oa-plan-regulatory .oa-rg-facts dt {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8378;
}

#oa-plan-regulatory .oa-rg-facts dd {
  margin: 3px 0 0;
  font-size: 13px;
  color: #ece7dd;
}

#oa-plan-regulatory .oa-rg-sources-label {
  margin: 0 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8378;
}

#oa-plan-regulatory .oa-rg-sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#oa-plan-regulatory .oa-rg-sources li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #ece7dd;
}

#oa-plan-regulatory .oa-rg-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5c574e;
  flex: 0 0 auto;
}

#oa-plan-regulatory .oa-rg-source-dot.is-linked {
  background: #3d8a5a;
  box-shadow: 0 0 6px rgba(61, 138, 90, 0.5);
}

#oa-plan-regulatory .oa-rg-source-dot.is-partial {
  background: #b8893a;
}

#oa-plan-regulatory .oa-rg-table-wrap {
  overflow: visible;
  min-width: 0;
  border: 1px solid rgba(197, 154, 53, 0.22);
  border-radius: 2px;
  background: rgba(12, 10, 8, 0.35);
}

#oa-plan-regulatory .oa-rg-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
}

#oa-plan-regulatory .oa-rg-table th {
  height: 34px;
  padding: 6px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #9a9488);
  border-bottom: 1px solid rgba(197, 154, 53, 0.2);
}

#oa-plan-regulatory .oa-rg-table td {
  height: 38px;
  padding: 4px 8px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(197, 154, 53, 0.1);
  color: var(--text-primary, #f2ece0);
  overflow-wrap: anywhere;
  min-width: 0;
}

#oa-plan-regulatory .oa-rg-table tbody tr:hover td {
  background: rgba(197, 154, 53, 0.04);
}

#oa-plan-regulatory .oa-rg-table--statements th:nth-child(1),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(1) { width: 26%; }
#oa-plan-regulatory .oa-rg-table--statements th:nth-child(2),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(2) { width: 16%; }
#oa-plan-regulatory .oa-rg-table--statements th:nth-child(3),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(3) { width: 12%; }
#oa-plan-regulatory .oa-rg-table--statements th:nth-child(4),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(4) { width: 12%; }
#oa-plan-regulatory .oa-rg-table--statements th:nth-child(5),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(5) { width: 22%; }
#oa-plan-regulatory .oa-rg-table--statements th:nth-child(6),
#oa-plan-regulatory .oa-rg-table--statements td:nth-child(6) { width: 40px; }

#oa-plan-regulatory .oa-rg-table--horizon th:nth-child(1),
#oa-plan-regulatory .oa-rg-table--horizon td:nth-child(1) { width: 22%; }
#oa-plan-regulatory .oa-rg-table--horizon th:nth-child(2),
#oa-plan-regulatory .oa-rg-table--horizon td:nth-child(2) { width: 36%; }
#oa-plan-regulatory .oa-rg-table--horizon th:nth-child(3),
#oa-plan-regulatory .oa-rg-table--horizon td:nth-child(3) { width: 16%; }
#oa-plan-regulatory .oa-rg-table--horizon th:nth-child(4),
#oa-plan-regulatory .oa-rg-table--horizon td:nth-child(4) { width: 14%; }
#oa-plan-regulatory .oa-rg-table--horizon th:nth-child(5),
#oa-plan-regulatory .oa-rg-table--horizon td:nth-child(5) { width: 40px; }

#oa-plan-regulatory .oa-rg-reg-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #ece7dd;
}

#oa-plan-regulatory .oa-rg-reg-sub {
  display: block;
  font-size: 11px;
  color: #8a8378;
  margin-top: 1px;
}

#oa-plan-regulatory .oa-rg-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 154, 53, 0.28);
  color: #d8d0c2;
}

#oa-plan-regulatory .oa-rg-pill.is-high {
  border-color: rgba(176, 74, 74, 0.55);
  color: #d9a0a0;
  background: rgba(176, 74, 74, 0.12);
}

#oa-plan-regulatory .oa-rg-pill.is-medium {
  border-color: rgba(184, 140, 56, 0.5);
  color: #d4b56a;
  background: rgba(184, 140, 56, 0.12);
}

#oa-plan-regulatory .oa-rg-pill.is-low {
  border-color: rgba(90, 122, 102, 0.5);
  color: #9bb5a4;
  background: rgba(90, 122, 102, 0.12);
}

#oa-plan-regulatory .oa-rg-scope {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #ece7dd;
  white-space: nowrap;
}

#oa-plan-regulatory .oa-rg-actions-cell {
  text-align: center;
  overflow: visible;
}

#oa-plan-regulatory .oa-rg-row-menu {
  position: relative;
  display: inline-block;
}

#oa-plan-regulatory .oa-rg-row-menu-trigger,
#oa-plan-regulatory .oa-rg-row-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #c59a35;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
}

#oa-plan-regulatory .oa-rg-row-menu > summary:hover {
  border-color: rgba(197, 154, 53, 0.35);
}

#oa-plan-regulatory .oa-rg-row-menu > summary::-webkit-details-marker {
  display: none;
}

#oa-plan-regulatory .oa-rg-row-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 196px;
  border: 1px solid rgba(197, 154, 53, 0.35);
  border-radius: 2px;
  background: var(--oa-surface-card, #1a1814);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 4px;
}

#oa-plan-regulatory .oa-rg-row-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-primary, #f2ece0);
  font-size: 12px;
  padding: 7px 8px;
  cursor: pointer;
}

#oa-plan-regulatory .oa-rg-row-menu-panel button:hover {
  background: rgba(197, 154, 53, 0.1);
}

#oa-plan-regulatory .oa-rg-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #9a9488;
}

#oa-plan-regulatory .oa-rg-pager-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#oa-plan-regulatory .oa-rg-pager .secondary-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

#oa-plan-regulatory .oa-rg-pager .secondary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

#oa-plan-regulatory .oa-rg-prose,
#oa-plan-regulatory .oa-rg-empty-inline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #d8d0c2;
}

#oa-plan-regulatory .oa-rg-empty-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

#oa-plan-regulatory .oa-rg-empty-inline strong {
  color: #ece7dd;
}

#oa-plan-regulatory .oa-rg-empty-row td {
  height: auto;
  padding: 12px 10px;
}

#oa-plan-regulatory .oa-rg-textarea {
  min-height: 132px;
  line-height: 1.5;
  font-size: 12.5px;
}

#oa-plan-regulatory .oa-rg-drawer {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(197, 154, 53, 0.28);
  border-radius: 2px;
  background: rgba(12, 10, 8, 0.45);
}

#oa-plan-regulatory .oa-rg-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#oa-plan-regulatory .oa-rg-drawer-head h4 {
  margin: 0;
  font-size: 14px;
  color: #f2ece0;
}

#oa-plan-regulatory .oa-rg-drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0 0 10px;
}

#oa-plan-regulatory .oa-rg-drawer-facts dt {
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a8378;
}

#oa-plan-regulatory .oa-rg-drawer-facts dd {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #ece7dd;
}

#oa-plan-regulatory .oa-rg-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#oa-plan-regulatory .oa-rg-include-form,
#oa-plan-regulatory .oa-rg-note-form,
#oa-plan-regulatory .oa-rg-add-form {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

#oa-plan-regulatory .oa-rg-add-form--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#oa-plan-regulatory .oa-rg-add-hits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

#oa-plan-regulatory .oa-rg-add-hits li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(197, 154, 53, 0.18);
}

#oa-plan-regulatory .oa-rg-add-hits strong {
  display: block;
  font-size: 12.5px;
}

#oa-plan-regulatory .oa-rg-save-actions {
  margin-top: 2px;
}

#oa-plan-regulatory .oa-rg-actions-placeholder {
  color: #6d675c;
}

@media (max-width: 980px) {
  #oa-plan-regulatory .oa-rg-key-grid,
  #oa-plan-regulatory .oa-rg-drawer-facts,
  #oa-plan-regulatory .oa-rg-add-form--inline {
    grid-template-columns: 1fr;
  }
}
