/* T CAP IFSC FS — Top Brand Header + Left Sticky Navigation Sidebar */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.65; background: #f3f3f1; color: #303238; }

.reg-page {
  --reg-ink: #1f1b16;
  --reg-ink-soft: #5c5347;
  --reg-brown: #856323;
  --reg-brown-deep: #5e4415;
  --reg-brown-pale: #f5efe4;
  --reg-brown-tint: #fbf8f3;
  --reg-brown-border: #dfd2bc;
  --reg-line: #e4ddd1;
  --reg-paper: #f7f4ef;
  --reg-surface: #ffffff;
  --reg-shadow: 0 8px 26px rgba(94, 68, 21, 0.065);
  --reg-shadow-hover: 0 13px 32px rgba(94, 68, 21, 0.12);
  min-height: 100vh;
  background: var(--reg-paper);
  color: var(--reg-ink);
 }

.reg-draft-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 24px;
  background: #383a3e;
  color: #fff;
  border-bottom: 3px solid var(--reg-brown);
}

/* Top Header Bar (Same as CCP Reference) */
.reg-topbar {
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(40, 40, 35, .055);
  border-bottom: 1px solid #e9e7df;
}

.reg-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 15px 28px;
}

.reg-topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.reg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--reg-ink);
  text-decoration: none;
}

.reg-brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 5px;
  background: #3a3b3e;
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.reg-brand-name {
  display: flex;
  flex-direction: column;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--reg-ink);
}

.reg-brand-name span {
  margin-top: 2px;
  color: var(--reg-ink-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.reg-topbar-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border: 1px solid #eee0b5;
  border-radius: 6px;
  background: #f8f0d8;
  color: #5c5131;
  font-size: 12px;
  line-height: 1.3;
}

.reg-topbar-badge strong {
  display: block;
  color: #303238;
  font-weight: 700;
}

.reg-topbar-badge span:last-child {
  display: block;
  color: #6b5d38;
  font-size: 11px;
}

.reg-status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: oklch(0.65 0.14 155);
}

/* Two-Column Grid Layout */
.reg-shell {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  padding: 30px 28px 70px;
}

/* Sticky Left Sidebar (Navigation Only) */
.reg-sidebar {
  position: sticky;
  top: 22px;
  padding: 15px;
  border: 1px solid #e6e3d9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--reg-shadow);
}

.reg-nav-label {
  padding: 3px 10px 10px;
  color: #9a8a5e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.reg-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.reg-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 5px;
  color: #666970;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.reg-nav a:hover {
    border-left-color: var(--reg-brown);
    background: var(--reg-brown-pale);
    color: var(--reg-brown-deep);
    font-weight: 700;
}

.reg-nav a.is-active {
    border-left-color: var(--reg-brown);
    background: var(--reg-brown-pale);
    color: var(--reg-brown-deep);
    font-weight: 700;
}

.reg-nav-number {
  display: inline-block;
  min-width: 25px;
  padding: 1px 5px;
  border-radius: 4px;
  text-align: center;
  background: #f1f0ec;
  color: #66635b;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.reg-nav a.is-active .reg-nav-number {
      background: var(--reg-brown);
    color: #ffffff;
}

/* Main Content Styles */
.reg-main { min-width: 0; padding: 0 0 50px; }

.reg-hosted-note,
.reg-identity,
.reg-section,
.reg-disclaimer-section {
  margin: 0 0 22px;
  padding: 27px 30px;
  border: 1px solid #e6e3da;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: var(--reg-shadow);
}

.reg-hosted-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 20px;
  border-left: 4px solid #856323;
  background: #fbf8f3;
}
.reg-hosted-note p { margin: 0; font-size: 14px; line-height: 1.65; }
.reg-note-icon {
  display: grid;
  flex: 0 0 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
    background: var(--reg-brown);
    color: #ffffff;  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.reg-identity { border-top: 4px solid #856323; }
.reg-overline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #8a7950;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .12em;
}
.reg-overline span { width: 18px; height: 2.5px; background: #e3b633; }
.reg-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reg-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 11px;
  border: 1px solid #eee1b8;
  border-radius: 4px;
  background: #fbf4dd;
  color: #66572f;
  font-size: 12px;
  font-weight: 700;
}
.reg-identity h1 {
  margin: 12px 0 0;
  color: #303238;
  font-family: "Manrope", sans-serif;
  font-size: 39px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.reg-role-line { max-width: 62ch; margin: 10px 0 0; color: #70747b; font-size: 16px; line-height: 1.55; }

.reg-authority {
  display: flex;
  flex: 0 0 144px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 11px;
  border: 1px solid #e5e2d9;
  border-radius: 7px;
  background: #f5f4f0;
}
.reg-authority span { color: #70747b; font-size: 10px; font-weight: 700; }
.reg-authority strong {
  color: #35363a;
  font-family: "Manrope", sans-serif;
  font-size: 26px;
  font-weight: 800;
  border-bottom: 3px solid #d8b343;
  line-height: 1.1;
  margin: 2px 0;
}

.reg-identity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 26px; margin: 26px 0 0; }
.reg-identity-grid div { min-width: 0; padding-top: 12px; border-top: 1px solid #e5e2d8; }
.reg-identity-grid dt, .reg-panel-label { margin: 0 0 5px; color: var(--reg-brown); font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.reg-identity-grid dd { margin: 0; color: #303238; font-size: 14.5px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.reg-separator { margin: 0 7px; color: #9a9da3; }
.reg-placeholder { display: inline; color: #303238; overflow-wrap: anywhere; }

/* Sections */
.reg-section { scroll-margin-top: 24px; }
.reg-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #ebe7dc;
}
.reg-section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 7px;
  border-radius: 4px;
    background: var(--reg-brown);  color: #fff;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.reg-section-heading h2 {
  margin: 0;
  color: #34363a;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.reg-lead { max-width: 78ch; margin: 0 0 20px;     color: var(--reg-ink-soft); font-size: 14.5px; line-height: 1.7; }

.reg-copy-panel,
.reg-table-wrap,
.reg-info-card,
.reg-status-chip,
.reg-doc-links a,
.reg-disclaimer {
  border: 1px solid #e7e3d8;
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(25, 35, 45, .045);
}

.reg-copy-panel {    padding: 22px 24px;
    border: 1px solid var(--reg-line);
    border-left: 3px solid var(--reg-brown);
    border-radius: 7px;
    background: var(--reg-brown-tint);
    box-shadow: 0 4px 16px rgba(94, 68, 21, 0.04); }
.reg-copy-panel p { margin: 12px 0 0; color: #333; font-size: 14.5px; line-height: 1.7; }
.reg-copy-panel p b { color: #303238; }

.reg-table-wrap { width: 100%; overflow-x: auto; background: #ffffff; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; text-align: left; }
.reg-table th, .reg-table td { padding: 15px 18px; border-bottom: 1px solid #e5e2d8; vertical-align: top; }
.reg-table th {     background: var(--reg-brown); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.reg-table tbody tr:hover { background: #fbf8f3; }
.reg-table tr:last-child td { border-bottom: 0; }

.reg-active-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  background: oklch(0.95 0.03 155);
  color: oklch(0.35 0.1 155);
  font-size: 13px;
  font-weight: 700;
}
.reg-active-status::before { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.60 0.15 155); content: ""; }

.reg-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reg-info-card {
  padding: 20px 22px;
  border-left: 3px solid #856323;
  background: #ffffff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.reg-info-card:hover { transform: translateY(-2px); box-shadow: var(--reg-shadow-hover); }
.reg-card-role { margin-bottom: 6px;     color: var(--reg-brown); font-size: 11.5px; font-weight: 750; text-transform: uppercase; }
.reg-card-name { color: #303238; font-size: 16.5px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.reg-card-meta { margin-top: 6px; color: #70747b; font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }

.reg-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.reg-status-chip { padding: 18px 20px; border-top: 3px solid #856323; background: #fbf8f3; }
.reg-status-number { color: #a17b13; font-family: "Manrope", sans-serif; font-size: 24px; font-weight: 800; line-height: 1.35; }
.reg-status-label { margin-top: 4px; color: #70747b; font-size: 13px; }
.reg-updated { margin: 14px 0 0; color: #70747b; font-size: 13px; }

.reg-doc-links { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 10px; }
.reg-doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  background: #ffffff;
  color: #3c3d40;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}
.reg-doc-links a:hover {    border: 1px solid var(--reg-line);
    border-radius: 6px;
    background: var(--reg-surface);}
.reg-doc-links a span {
  padding: 2px 6px;
  border: 1px solid #eadba9;
  border-radius: 3px;
    background: var(--reg-brown);
    color: #ffffff;  font-size: 11px;
  font-weight: 800;
}

.reg-disclaimer {
  padding: 20px 22px;
  border-left: 4px solid var(--reg-brown);
  background: #fff;
  color: #303238;
  font-size: 14px;
  line-height: 1.65;
}

.reg-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 20px 5px 0;
  border-top: 1px solid #e5e2d8;
  color: #77766f;
  font-size: 12.5px;
}
.reg-footer span { padding: 0 5px; color: #85837c; font-weight: 700; }

/* Tablet & Mobile Responsive */
@media (max-width: 900px) {
  .reg-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 22px 18px 50px; }
  .reg-sidebar { padding: 11px; }
  .reg-section, .reg-identity { padding: 22px; }
}

@media (max-width: 720px) {
  .reg-topbar-inner { padding: 12px 16px; }
  .reg-topbar-badge { display: none; }
  .reg-shell { display: flex; flex-direction: column; gap: 15px; padding: 16px 14px 40px; }
  .reg-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 9px;
  }
  .reg-nav-label { display: none; }
  .reg-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
  }
  .reg-nav a { flex: 0 0 auto; width: auto; min-height: 40px; padding: 9px 11px; border-left: 0; border-bottom: 2px solid transparent; }
  .reg-nav a.is-active { border-left: 0; border-bottom-color: #d6a91e; }

  .reg-main { width: 100%; padding: 0 0 35px; }
  .reg-hosted-note, .reg-identity, .reg-section, .reg-disclaimer-section { margin-bottom: 14px; padding: 19px 17px; }
  .reg-identity h1 { font-size: 32px; }
  .reg-title-row { align-items: flex-start; }
  .reg-authority { flex-basis: 105px; padding: 12px 8px; }
  .reg-identity-grid, .reg-card-grid, .reg-status-grid { grid-template-columns: 1fr; }
  .reg-section-heading h2 { font-size: 19px; }
  .reg-section { scroll-margin-top: 75px; }
}

@media (prefers-reduced-motion: reduce) {
  .reg-page *, .reg-page *::before, .reg-page *::after { scroll-behavior: auto !important; transition: none !important; }
}