/* SIF Scheme Details - finished, human polish (scoped to .scheme-page) */
.scheme-page {
  --navy: #0B1F4B;
  --navy2: #071633;
  --navy3: #132F6B;
  --gold: #9B9045;
  --gold2: #C4B45A;
  --gold-light: #F5E6A3;
  --ink: #1a2332;
  --mut: #5B6785;
  --ln: #E3E8F2;
  --bg: #F4F6FA;
  --card: #fff;
  --pos: #0A7A4B;
  --neg: #B42318;
  --blue: #1F4FD8;
  --shadow: 0 4px 20px -6px rgba(11, 31, 75, 0.12);
  --shadow-md: 0 8px 28px -10px rgba(11, 31, 75, 0.16);
  --radius: 16px;

  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: 64px;
}

.scheme-page,
.scheme-page * {
  box-sizing: border-box;
}

.scheme-page h1,
.scheme-page h2,
.scheme-page h3,
.scheme-page h4,
.scheme-page p,
.scheme-page ul,
.scheme-page blockquote {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.scheme-page a {
  color: inherit;
  text-decoration: none;
}

.scheme-page h1,
.scheme-page h2,
.scheme-side-amount,
.item-value,
.risk-title {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
}

.scheme-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Notice ===== */
.scheme-notice {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.scheme-notice h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.scheme-notice p {
  color: var(--mut);
  margin-bottom: 14px;
}

.scheme-notice a {
  color: var(--blue);
  font-weight: 700;
}

/* ===== HERO ===== */
.scheme-hero {
  position: relative;
  background: linear-gradient(160deg, #071633 0%, var(--navy) 55%, #0F2A66 100%);
  color: #fff;
  padding: 32px 0 72px;
  overflow: hidden;
}

.scheme-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  opacity: 0.7;
}

.scheme-hero-pattern::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -100px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 144, 69, 0.22), transparent 70%);
  filter: blur(36px);
  opacity: 0.5;
}

.scheme-hero-inner {
  position: relative;
  z-index: 2;
}

.scheme-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #9FB0D8;
  margin-bottom: 24px;
}

.scheme-breadcrumb a:hover {
  color: #fff;
}

.scheme-breadcrumb span:last-child {
  color: #fff;
}

.scheme-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 32px;
  align-items: start;
}

.scheme-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.scheme-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.scheme-tag-gold {
  background: rgba(155, 144, 69, 0.28);
  border-color: rgba(245, 230, 163, 0.3);
  color: var(--gold-light);
}

.scheme-tag-navy {
  background: rgba(255, 255, 255, 0.1);
}

.scheme-tag-green {
  background: rgba(61, 220, 151, 0.12);
  border-color: rgba(61, 220, 151, 0.28);
  color: #9AE6C2;
}

.scheme-tag-green::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3DDC97;
  margin-right: 7px;
  vertical-align: middle;
}

.scheme-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
}

.scheme-amc {
  font-size: 14px;
  color: #B9C5E4;
  margin-bottom: 12px;
}

.scheme-amc strong {
  color: #fff;
  font-weight: 700;
}

.scheme-desc {
  font-size: 14.5px;
  color: #C9D3EE;
  max-width: 620px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.scheme-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scheme-meta {
  min-width: 100px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scheme-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9FB0D8;
  margin-bottom: 2px;
}

.scheme-meta-value {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.scheme-side-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.45);
}

.scheme-side-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9FB0D8;
}

.scheme-side-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
  margin: 6px 0;
}

.scheme-side-note {
  font-size: 13.5px;
  color: #B9C5E4;
  margin-bottom: 12px;
  line-height: 1.5;
}

.scheme-side-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
  background: rgba(245, 230, 163, 0.14);
  border: 1px solid rgba(245, 230, 163, 0.3);
  color: var(--gold-light);
}

.scheme-back-link {
  display: block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s;
}

.scheme-back-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== PERFORMANCE STRIP ===== */
.performance-strip {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(227, 232, 242, 0.9);
}

.performance-stat {
  padding: 16px 18px;
  border-left: 1px solid var(--ln);
}

.performance-stat:first-child {
  border-left: 0;
}

.item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 4px;
}

.item-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  word-break: break-word;
}

.item-caption {
  font-size: 12px;
  color: var(--mut);
  margin-top: 2px;
}

.return-positive {
  color: var(--pos) !important;
}

.return-negative {
  color: var(--neg) !important;
}

/* ===== MAIN LAYOUT ===== */
.scheme-main {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.section-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
}

.section-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut);
  transition: background 0.15s, color 0.15s;
}

.section-nav a:hover {
  background: #F3F6FC;
  color: var(--navy);
}

.section-nav a.is-active {
  background: var(--navy);
  color: #fff;
}

.scheme-content {
  counter-reset: section;
  min-width: 0;
}

.scheme-section {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-number {
  counter-increment: section;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
}

.section-number::before {
  content: counter(section, decimal-leading-zero);
}

.section-head h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.section-lead {
  font-size: 13px;
  color: var(--mut);
  margin-top: 2px;
}

/* ===== RISK ===== */
.risk-panel {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
}

.risk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mut);
}

.risk-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 8px;
}

.risk-note {
  font-size: 13px;
  color: var(--mut);
  line-height: 1.55;
}

.risk-meter {
  position: relative;
  padding-top: 32px;
}

.risk-meter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.risk-segment {
  height: 12px;
  border-radius: 99px;
  opacity: 0.3;
  position: relative;
  transition: opacity 0.2s;
}

.risk-segment span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.risk-segment.is-active {
  opacity: 1;
}

.risk-level-1 { background: #2FB67C; }
.risk-level-2 { background: #8BC34A; }
.risk-level-3 { background: #F2B81C; }
.risk-level-4 { background: #F2802A; }
.risk-level-5 { background: #D6342C; }

.risk-meter-pin {
  position: absolute;
  top: 22px;
  width: 3px;
  height: 30px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--navy);
  box-shadow: 0 0 0 2px #fff;
}

.risk-meter-tag {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--navy);
  color: #fff;
}

.risk-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mut);
}

/* ===== KEY FACTS ===== */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fact-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
}

.fact-card-wide {
  grid-column: span 3;
}

.fact-card .item-value {
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  color: var(--ink);
}

.fact-icon {
  margin-right: 6px;
  opacity: 0.8;
}

/* ===== OBJECTIVE ===== */
.objective-quote {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 26px !important;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  font-size: 15px;
  line-height: 1.75;
  color: var(--navy);
  font-weight: 500;
  border-top: 1px solid var(--ln);
  border-right: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}

/* ===== PHILOSOPHY ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.philosophy-card {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
  border-top: 3px solid var(--gold);
}

.philosophy-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.philosophy-card p {
  font-size: 14px;
  color: var(--mut);
  line-height: 1.55;
}

/* ===== ALLOCATION ===== */
.exposure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.exposure-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
}

.exposure-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 10px;
  background: var(--tone, var(--navy));
  font-size: 14px;
}

.exposure-card h4 {
  font-size: 13px;
  color: var(--mut);
  font-weight: 700;
}

.exposure-range {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 3px 0 4px;
}

.exposure-card p {
  font-size: 13px;
  color: var(--mut);
  line-height: 1.45;
}

.tone-1 { --tone: #1F4FD8; }
.tone-2 { --tone: #0A7A4B; }
.tone-3 { --tone: #9B9045; }
.tone-4 { --tone: #D6342C; }
.tone-5 { --tone: #7A4BD8; }
.tone-6 { --tone: #0E8AA6; }
.tone-7 { --tone: #F2802A; }
.tone-8 { --tone: #0B1F4B; }

.allocation-chart-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  border: 1px solid var(--ln);
}

.allocation-chart-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 14.5px;
}

.allocation-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 200px) 1fr 90px;
  gap: 12px;
  align-items: center;
  margin-bottom: 11px;
}

.allocation-bar-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.allocation-bar-track {
  height: 10px;
  background: #EAEFF8;
  border-radius: 99px;
  overflow: hidden;
}

.allocation-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--tone, var(--navy));
}

.allocation-bar-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
}

.allocation-chart-note {
  font-size: 12px;
  color: var(--mut);
  margin-top: 6px;
}

.allocation-table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  border: 1px solid var(--ln);
}

.allocation-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.allocation-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--navy);
  font-weight: 700;
}

.allocation-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-top: 1px solid var(--ln);
}

.allocation-table tbody tr:hover {
  background: #F7F9FD;
}

.allocation-range {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ===== HIGHLIGHTS ===== */
.highlights-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.highlights-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
  border: 1px solid var(--ln);
  line-height: 1.5;
}

.highlight-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: rgba(10, 122, 75, 0.12);
  color: var(--pos);
  margin-top: 1px;
}

/* ===== DOCUMENTS ===== */
.documents-list {
  display: grid;
  gap: 10px;
}

.document-link {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--ln);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.document-link:hover {
  border-color: var(--gold2);
  box-shadow: var(--shadow-md);
}

.document-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.document-icon-web { background: var(--blue); }
.document-icon-sid { background: var(--navy); }
.document-icon-factsheet { background: var(--gold); }

.document-text {
  flex: 1;
  min-width: 0;
}

.document-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.document-text p {
  font-size: 13px;
  color: var(--mut);
  line-height: 1.45;
}

.document-text p span {
  color: var(--gold);
  font-weight: 600;
}

.document-arrow {
  flex: none;
  font-size: 18px;
  color: var(--navy);
}

#docsEmpty {
  color: var(--mut);
  font-size: 14px;
}

.scheme-disclaimer {
  font-size: 12.5px;
  color: var(--mut);
  background: rgba(155, 144, 69, 0.08);
  border: 1px solid rgba(155, 144, 69, 0.22);
  border-radius: 12px;
  padding: 14px 16px !important;
  line-height: 1.55;
}

.scheme-footer-link {
  text-align: center;
  margin-top: 18px;
}

.scheme-footer-link a {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
}

.scheme-footer-link a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .scheme-hero-grid {
    grid-template-columns: 1fr;
  }

  .performance-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .performance-stat:nth-child(4) {
    border-left: 0;
  }

  .performance-stat:nth-child(n+4) {
    border-top: 1px solid var(--ln);
  }

  .scheme-main {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .section-nav a {
    white-space: nowrap;
  }

  .risk-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .performance-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -32px;
  }

  .performance-stat:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--ln);
  }

  .performance-stat:nth-child(odd) {
    border-right: 1px solid var(--ln);
  }

  .performance-stat:nth-child(-n+2) {
    border-top: 0;
  }

  .facts-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .fact-card-wide {
    grid-column: auto;
  }

  .allocation-bar-row {
    grid-template-columns: 1fr 80px;
  }

  .allocation-bar-label {
    grid-column: 1 / -1;
  }

  .allocation-bar-track {
    grid-column: 1;
  }

  .scheme-side-amount {
    font-size: 28px;
  }

  .scheme-title {
    font-size: 22px;
  }
}

/* Master page overrides */
.dnone_homepage {
  visibility: visible;
}

.headerlogo {
  width: revert-rule;
}

.product_icon_mobile {
  display: none;
}
