@charset "UTF-8";

/* Shared analysis workspace for equities and digital assets. */
#app:has(.analysis-detail) {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 0 64px;
}
.analysis-detail {
  --ad-red: #a8453c;
  --ad-green: #3e7359;
  --ad-panel: #fff;
  min-width: 0;
  font-size: 13px;
}
.analysis-detail [hidden] { display: none !important; }
.analysis-detail :is(button, a, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.analysis-detail :is(button, a) { touch-action: manipulation; }
.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 17px;
  font-size: 11px;
  color: var(--muted);
}
.ad-back:hover { color: var(--gold-dark); }
.ad-back svg { width: 15px; height: 15px; }
.ad-asset-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, .6fr) minmax(210px, .8fr);
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  background: var(--ad-panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ad-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.ad-identity .asset-logo { width: 54px; height: 54px; font-size: 23px; border-radius: 50%; }
.ad-identity > div { min-width: 0; }
.ad-name-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ad-name-line h1 { flex: 0 1 auto; }
.ad-identity h1 {
  margin: 0 0 3px;
  font: 600 23px/1.25 var(--sans);
  letter-spacing: -.4px;
  overflow-wrap: anywhere;
}
.ad-identity .watch-button {
  position: static;
  width: 34px;
  height: 34px;
  padding: 7px;
  flex: 0 0 auto;
  color: var(--gold);
}
.ad-identity .watch-button.is-active { background: var(--gold-soft); }
.ad-website { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gold-dark); }
.ad-website:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-quote { display: grid; gap: 2px; min-width: 0; }
.ad-quote > small, .ad-quote > span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.ad-quote strong { font-size: 21px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ad-quote p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.ad-quote .quote-widget { min-width: 0; max-width: 100%; }
.ad-quote .quote-widget-stage { min-width: 0; max-width: 100%; min-height: 34px; }
.ad-quote .quote-widget-frame { display: block; width: 240px; max-width: 100%; height: 120px; border: 0; }
.ad-quote .quote-widget-status { display: block; color: var(--muted); font-size: 11px; line-height: 1.75; padding: 5px 0; }
.ad-quote .quote-widget-source { display: inline-block; color: var(--gold-dark); font-size: 9px; line-height: 1.7; }
.ad-quote .quote-widget-source:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-quote .quote-ready .quote-widget-source { display: none; }
.ad-quote .quote-widget-note { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; margin-top: 2px; }
.ad-identifiers { display: grid; gap: 6px; margin: 0; justify-self: end; min-width: 0; font-size: 11px; }
.ad-identifiers > div { display: flex; justify-content: flex-end; gap: 8px; min-width: 0; }
.ad-identifiers dt { color: var(--muted); }
.ad-identifiers dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.ad-identifiers button { border: 0; background: transparent; color: var(--muted); padding: 1px 3px; }
.ad-identifiers button svg { width: 13px; height: 13px; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 22px; }
.ad-tabs button {
  border: 1px solid var(--line);
  padding: 8px 15px;
  border-radius: 5px;
  color: var(--gold-dark);
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 35px;
}
.ad-tabs button[aria-selected="true"], .ad-tabs button.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.ad-tabs button:hover:not([aria-selected="true"]) { background: var(--gold-soft); }
.ad-workspace { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.ad-main, .ad-sidebar, .ad-chart-shell, .ad-fundamentals { min-width: 0; }
.ad-analysis-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.ad-analysis-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 13px;
  background: #f7f3e9;
  border: 1px solid #e5dac2;
  border-radius: 5px;
}
.ad-analysis-banner small, .ad-analysis-banner p { font-size: 10px; color: #867456; margin: 0 0 2px; }
.ad-analysis-banner h2 { font: 600 14px/1.4 var(--sans); color: var(--gold-dark); letter-spacing: 0; margin: 0; }
.ad-analysis-banner > span { font-size: 10px; color: var(--gold-dark); line-height: 1.6; text-align: right; }
.ad-analysis-banner button { border: 0; background: transparent; color: var(--gold); padding: 5px; }
.ad-chart-shell { padding: 10px; background: #f5f5f1; border-radius: 6px; }
.ad-chart-stage { position: relative; overflow: hidden; min-width: 0; background: #111; border-radius: 5px; }
.ad-chart-stage img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.ad-chart-stage > svg { width: 100%; height: auto; display: block; }
.ad-chart-stage .live-chart-frame { margin: 0; height: 520px; border: 0; border-radius: 5px; }
.ad-chart-stage .live-chart-caption { background: #fff; margin: 0; padding: 8px 10px; flex-wrap: wrap; gap: 4px 12px; }
.ad-chart-stage > button, .ad-chart-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  background: var(--gold);
  color: #fff;
  border: 1px solid #b9964b;
  border-radius: 50%;
  box-shadow: 0 2px 7px #0002;
}
.ad-chart-stage > button:hover, .ad-chart-expand:hover { background: var(--gold-dark); }
.ad-chart-stage > button svg, .ad-chart-expand svg { width: 17px; height: 17px; }
.ad-chart-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; }
.ad-chart-toolbar > div { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ad-chart-toolbar button {
  border: 1px solid #e8e5db;
  border-radius: 4px;
  padding: 5px 9px;
  background: #fff;
  color: var(--gold-dark);
  font-size: 10px;
  line-height: 1.6;
  min-height: 30px;
}
.ad-chart-toolbar button[aria-pressed="true"], .ad-chart-toolbar button.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }
.ad-chart-toolbar button:hover:not([aria-pressed="true"]) { background: var(--gold-soft); }
.ad-chart-toolbar .ad-chart-arrows button { border-radius: 50%; min-width: 32px; padding: 6px; background: #ece7db; }
.ad-chart-toolbar button:disabled { opacity: .45; cursor: default; }
.ad-chart-caption { padding: 10px 3px 0; margin: 0; font-size: 10px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.ad-chart-caption a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.ad-article { padding: 27px 14px 12px; min-width: 0; }
.ad-article h2 { font: 600 clamp(24px, 2.5vw, 31px)/1.2 var(--sans); letter-spacing: -.7px; margin: 0 0 10px; }
.ad-article h3 { font-size: 14px; font-weight: 600; margin: 22px 0 9px; letter-spacing: 0; }
.ad-article p, .ad-article li { color: #61685b; font-size: 13px; line-height: 1.95; }
.ad-article p { margin-bottom: 15px; }
.ad-article ul, .ad-article ol { padding-left: 21px; margin: 12px 0 19px; }
.ad-article li { padding-left: 2px; margin: 8px 0; }
.ad-article strong { color: var(--ink); font-weight: 600; }
.ad-article a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.ad-article .ad-note { border-left: 3px solid #c7b17a; background: #fbf9f3; padding: 12px 15px; color: #786c51; font-size: 11px; line-height: 1.9; }
.ad-article .button { text-decoration: none; }
.ad-calculator { margin: 23px 0 22px; border: 1px solid #e4dcc8; background: #faf8f1; border-radius: 8px; }
.ad-calculator > summary { cursor: pointer; padding: 14px 17px; color: var(--gold-dark); font-size: 12px; font-weight: 600; line-height: 1.7; }
.ad-calculator[open] > summary { border-bottom: 1px solid #e9e1cd; }
.ad-calculator .scenario-calculator { padding: 22px 18px; border: 0; border-radius: 0 0 8px 8px; background: #fff; }
.ad-calculator .calculator-heading { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-bottom: 15px; }
.ad-calculator .calculator-heading .section-kicker { font-size: 9px; margin: 0; }
.ad-calculator .calculator-heading h3 { font: normal 24px/1.3 var(--serif); letter-spacing: -.4px; margin: 0; }
.ad-calculator .calculator-heading .sample-badge { justify-self: start; }
.ad-calculator .calculator-intro { margin-bottom: 16px; font-size: 11px; line-height: 1.85; }
.ad-calculator .calculator-fields { margin: 17px 0; gap: 12px; }
.ad-calculator .calculator-fields input { padding: 10px; font-size: 13px; }
.ad-calculator .calculator-results { padding: 18px 0; gap: 12px; }
.ad-calculator .calc-result output { font-size: 21px; }
.ad-calculator .calculator-note { font-size: 10px; line-height: 1.8; margin-bottom: 0; }
.ad-sidebar { display: grid; gap: 12px; align-content: start; }
.ad-sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 13px;
  border-radius: 9px;
  min-width: 0;
}
.ad-sidebar-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ad-sidebar-card h2 { font-size: 16px; font-weight: 600; letter-spacing: -.1px; line-height: 1.4; margin: 0; }
.ad-sidebar-card header > span, .ad-sidebar-card header > button { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.ad-sidebar-card header > button { border: 0; background: transparent; padding: 3px; }
.ad-sidebar-card p { font-size: 11px; line-height: 1.85; color: var(--muted); margin: 9px 0 0; }
.ad-level-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ad-level-columns > div { display: grid; align-content: start; gap: 7px; min-width: 0; }
.ad-level-columns :is(h3, small) { font-size: 10px; font-weight: 500; line-height: 1.5; margin: 0; color: var(--muted); letter-spacing: .15px; }
.ad-level-columns small { display: block; font-size: 9px; line-height: 1.4; margin-top: 3px; }
.ad-level-value { display: block; padding: 5px 6px; text-align: center; border-radius: 5px; font-size: 14px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.ad-level-value.negative { color: var(--ad-red); border: 1px solid #ead2cb; background: #fbefeb; }
.ad-level-value.positive { color: var(--ad-green); border: 1px solid #d4e5d8; background: #edf5ee; }
.ad-empty-level { border: 1px dashed #dfdccc; border-radius: 5px; padding: 9px 7px; font-size: 10px; line-height: 1.7; color: #8b8b7e; background: #fafaf7; min-height: 55px; }
.ad-level-note { margin-top: 10px !important; padding-top: 7px; border-top: 1px solid #eeede7; font-size: 10px !important; line-height: 1.6 !important; }
.ad-plan-rows { margin: 0; display: grid; gap: 7px; }
.ad-plan-rows > div { display: flex; justify-content: space-between; align-items: start; gap: 15px; padding: 6px 8px; background: #fbf9f3; border: 1px solid #e9e0cb; border-radius: 5px; }
.ad-plan-rows dt { color: #847759; font-size: 10px; line-height: 1.6; }
.ad-plan-rows dd { margin: 0; color: var(--gold-dark); text-align: right; font-size: 11px; line-height: 1.6; max-width: 65%; overflow-wrap: anywhere; }
.ad-parameter-details { margin-top: 7px; }
.ad-parameter-details > summary { cursor: pointer; color: var(--gold-dark); font-size: 10px; line-height: 1.6; padding: 4px 0; }
.ad-parameter-details[open] > summary { margin-bottom: 6px; }
.ad-learn-links { display: grid; gap: 7px; }
.ad-learn-links :is(a, button) { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 6px 10px; min-height: 32px; background: #faf9f5; color: var(--gold-dark); border: 1px solid #eeece4; border-radius: 6px; text-align: left; font-size: 11px; line-height: 1.6; }
.ad-learn-links :is(a, button):hover { background: var(--gold-soft); border-color: #ded1af; }
.ad-learn-links svg { width: 13px; height: 13px; flex-shrink: 0; }
.ad-opportunity-visual { padding: 12px; background: #faf9f4; border: 1px solid #eeece1; border-radius: 6px; margin: 0 0 12px; }
.ad-opportunity-visual svg { display: block; width: 100%; height: auto; }
.ad-opportunity-list { display: grid; gap: 9px; max-height: 380px; overflow-y: auto; overscroll-behavior-y: contain; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #b9ad90 #f4f2eb; }
.ad-opportunity-card { border: 1px solid #e8e6dc; border-radius: 7px; background: #fff; padding: 12px; min-width: 0; }
.ad-opportunity-card > small { font-size: 9px; color: var(--muted); }
.ad-opportunity-card h3 { font-size: 12px; font-weight: 600; line-height: 1.5; margin: 4px 0 7px; color: var(--gold-dark); }
.ad-opportunity-card p { font-size: 10px; line-height: 1.8; margin: 7px 0 0; }
.ad-opportunity-status { display: inline-flex; gap: 5px; align-items: center; border: 1px solid #ddd3bc; background: #f8f5ec; border-radius: 3px; padding: 2px 6px; font-size: 8px; line-height: 1.6; text-transform: uppercase; letter-spacing: .4px; color: var(--gold-dark); }
.ad-opportunity-card svg { width: 100%; height: auto; margin: 9px 0 0; }
.ad-fundamentals { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 27px; }
.ad-fundamentals > h2 { font: 600 27px/1.3 var(--sans); margin: 0 0 12px; letter-spacing: -.6px; }
.ad-fundamentals > p { font-size: 12px; color: var(--muted); line-height: 1.85; max-width: 760px; }
.ad-fundamental-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 24px; }
.ad-fundamental-card { padding: 23px; border: 1px solid var(--line); background: #fdfcf9; border-radius: 8px; min-width: 0; }
.ad-fundamental-card h3 { margin: 0 0 13px; font-size: 17px; font-weight: 600; }
.ad-fundamental-card p, .ad-fundamental-card li { font-size: 12px; color: #717768; line-height: 1.9; }
.ad-fundamental-card ul { padding-left: 18px; margin: 0; }
.ad-fundamental-card dl { margin: 0; }
.ad-fundamental-card dl > div { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.ad-fundamental-card dl > div:last-child { border: 0; }
.ad-fundamental-card dt { color: var(--muted); }
.ad-fundamental-card dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.ad-fundamental-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ad-fundamental-card :is(th, td) { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ad-fundamental-card th { color: var(--muted); font-weight: 500; }
.ad-fundamental-card :is(th, td):last-child { text-align: right; }
.ad-sources { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 23px; font-size: 10px; color: var(--muted); line-height: 1.9; overflow-wrap: anywhere; }
.ad-sources > div { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 7px 0; }
.ad-sources a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.ad-sources p { font-size: 10px; margin: 6px 0 0; line-height: 1.9; }
.ad-disclosure { margin-top: 19px; font-size: 11px; line-height: 1.9; color: var(--muted); }
.ad-disclosure summary { cursor: pointer; color: var(--gold-dark); padding: 9px 0; }
.ad-disclosure p { font-size: 10px; line-height: 1.9; }
.ad-image-modal { max-width: min(1440px, 96vw); max-height: 94vh; }
.ad-image-modal .chart-modal-inner { padding: 22px; }
.ad-image-modal .ad-modal-image { display: block; width: 100%; height: auto; max-height: calc(94vh - 145px); object-fit: contain; background: #111; border-radius: 6px; }
.ad-image-modal .ad-modal-credit { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 1150px) {
  .ad-asset-header { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .65fr) minmax(185px, .8fr); gap: 20px; }
  .ad-workspace { grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr); gap: 16px; }
  .ad-analysis-card { padding: 11px; }
  .ad-chart-stage .live-chart-frame { height: 470px; }
  .ad-article { padding: 24px 9px 9px; }
}
@media (max-width: 1000px) {
  .ad-workspace { grid-template-columns: minmax(0, 1fr); }
  .ad-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ad-sidebar-card:last-child { grid-column: 1 / -1; }
  .ad-opportunity-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; padding-right: 0; }
  .ad-chart-stage .live-chart-frame { height: 520px; }
}
@media (max-width: 900px) {
  .ad-asset-header { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
  .ad-identity { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #app:has(.analysis-detail) { width: calc(100% - 32px); margin: 0 auto; padding: 24px 0 42px; }
  .ad-back { margin-bottom: 14px; }
  .ad-asset-header { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 19px 18px; padding: 18px; }
  .ad-identity { grid-column: 1 / -1; gap: 12px; }
  .ad-identity .asset-logo { width: 46px; height: 46px; font-size: 21px; }
  .ad-identity h1 { font-size: 23px; }
  .ad-identity .watch-button { margin-left: 0; }
  .ad-quote strong { font-size: 20px; }
  .ad-identifiers { justify-self: end; gap: 5px; font-size: 10px; }
  .ad-identifiers > div { gap: 5px; }
  .ad-tabs { margin: 15px 0 18px; }
  .ad-tabs button { padding: 9px 12px; }
  .ad-workspace { gap: 17px; }
  .ad-analysis-card { padding: 10px; border-radius: 9px; }
  .ad-analysis-banner { padding: 11px; gap: 10px; }
  .ad-analysis-banner h2 { font-size: 13px; }
  .ad-analysis-banner > span { font-size: 9px; }
  .ad-chart-shell { padding: 6px; }
  .ad-chart-stage .live-chart-frame { height: 440px; }
  .ad-chart-stage > button, .ad-chart-expand { top: 8px; right: 8px; width: 33px; height: 33px; }
  .ad-chart-toolbar { gap: 8px; padding-top: 8px; }
  .ad-chart-toolbar button { padding: 6px 8px; min-height: 34px; }
  .ad-chart-caption { font-size: 9px; }
  .ad-article { padding: 24px 8px 8px; }
  .ad-article h2 { font-size: 26px; }
  .ad-article p, .ad-article li { font-size: 12px; line-height: 1.95; }
  .ad-sidebar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ad-sidebar-card:last-child { grid-column: auto; }
  .ad-sidebar-card { padding: 15px 14px; }
  .ad-learn-links :is(a, button) { min-height: 34px; }
  .ad-parameter-details > summary { min-height: 32px; display: list-item; padding-top: 7px; padding-bottom: 7px; }
  .ad-opportunity-list { grid-template-columns: minmax(0, 1fr); }
  .ad-fundamentals { padding: 23px 19px; }
  .ad-fundamentals > h2 { font-size: 25px; }
  .ad-fundamental-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 19px; }
  .ad-fundamental-card { padding: 19px; }
  .ad-calculator > summary { padding: 13px; font-size: 11px; }
  .ad-calculator .scenario-calculator { padding: 19px 13px; }
  .ad-calculator .calculator-fields, .ad-calculator .calculator-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ad-image-modal .chart-modal-inner { padding: 16px; }
  .ad-image-modal .ad-modal-image { max-height: calc(94vh - 140px); }
}
@media (max-width: 560px) {
  .ad-asset-header { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .ad-identity { grid-column: auto; }
  .ad-identifiers { justify-self: start; }
  .ad-identifiers > div { justify-content: flex-start; gap: 7px; }
  .ad-identifiers dd { text-align: left; }
  .ad-quote .quote-widget-note { max-width: 250px; }
}
@media (max-width: 390px) {
  #app:has(.analysis-detail) { width: calc(100% - 26px); }
  .ad-asset-header { padding: 15px; gap: 16px 12px; }
  .ad-identity h1 { font-size: 21px; }
  .ad-identity .asset-logo { width: 40px; height: 40px; font-size: 19px; }
  .ad-identity { gap: 10px; }
  .ad-quote strong { font-size: 18px; }
  .ad-identifiers { font-size: 9px; }
  .ad-analysis-banner { align-items: start; flex-wrap: wrap; padding: 10px; }
  .ad-analysis-banner > span { text-align: left; }
  .ad-chart-stage .live-chart-frame { height: 410px; }
  .ad-chart-toolbar > div:first-child { flex: 1 1 100%; }
  .ad-chart-toolbar .ad-chart-arrows { margin-left: auto; }
  .ad-article h2 { font-size: 24px; }
  .ad-article { padding-left: 4px; padding-right: 4px; }
  .ad-level-columns { gap: 8px; }
  .ad-level-value { font-size: 14px; }
  .ad-plan-rows > div { gap: 10px; }
  .ad-plan-rows dd { max-width: 61%; }
}
@media (prefers-reduced-motion: reduce) {
  .analysis-detail *, .analysis-detail *::before, .analysis-detail *::after { scroll-behavior: auto; transition: none; }
}
