/* AI Money research only. Shared navigation and other page styles are untouched. */
.ai-money-content {
  --am-bg: #090e0c;
  --am-yellow: #ffdc00;
  --am-ink: #f1f1ed;
  --am-muted: #a8ada9;
  --am-line: #303632;
  width: 100%;
  padding: 0;
  background: var(--am-bg);
  color: var(--am-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.ai-money-content * { box-sizing: border-box; }
.ai-money-content [hidden] { display: none !important; }
.ai-money-content a { color: inherit; text-underline-offset: 5px; }
.ai-money-content button, .ai-money-content summary { font: inherit; }
.ai-money-content :is(button, a, summary, select):focus-visible {
  outline: 2px solid var(--am-yellow);
  outline-offset: 5px;
}
.ai-money-content .wrap { width: min(1280px, calc(100% - 96px)); margin: auto; }
.ai-money-content .hero { background: var(--am-yellow); color: #080d0b; padding: 42px 0 30px; }
.ai-money-content .hero .eyebrow {
  color: inherit;
  font: bold .8125rem/1.55 "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin: 0 0 17px;
}
.ai-money-content h1 {
  font-size: clamp(2.625rem, 5.5vw, 4.875rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 22px;
  max-width: 1020px;
}
.ai-money-content h2 { font-size: clamp(1.6875rem, 3vw, 2.4375rem); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 12px; }
.ai-money-content h3 { font-size: 1.3125rem; line-height: 1.3; margin: 0 0 14px; }
.ai-money-content p { margin: 0 0 16px; }
.ai-money-content .hero .meta { font: .875rem/1.55 Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: normal; margin-bottom: 8px; }
.ai-money-content .hero .coverage { font-size: 1rem; font-weight: bold; letter-spacing: .01em; }
.ai-money-content .hero .intro { max-width: 780px; font-size: 1.125rem; line-height: 1.5; margin: 16px 0 24px; }
.ai-money-content .anchors { display: flex; gap: 28px; flex-wrap: wrap; font-size: .875rem; }
.ai-money-content .hero a:focus-visible { outline-color: #080d0b; }
.ai-money-content .section { padding: 52px 0; border-bottom: 1px solid var(--am-line); }
.ai-money-content .subline { color: var(--am-muted); max-width: 880px; font-size: 1rem; }
.ai-money-content .control-instruction { font-size: .875rem; margin: 28px 0 10px; }
.ai-money-content .control-line { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.ai-money-content .choices { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-money-content .choice {
  background: transparent;
  color: var(--am-ink);
  border: 1px solid var(--am-line);
  border-radius: 0;
  padding: 10px 17px;
  min-height: 46px;
  cursor: pointer;
  font-size: .9375rem;
  white-space: nowrap;
  overflow-wrap: normal;
}
.ai-money-content .choice[aria-pressed=true] { background: var(--am-yellow); border-color: var(--am-yellow); color: #080d0b; font-weight: 700; }
.ai-money-content .choice:hover:not([aria-pressed=true]) { border-color: #c5c8c5; }
.ai-money-content .sort-label { font-size: .8125rem; color: var(--am-muted); margin: 0; }
.ai-money-content .static-ranking { margin: 28px 0 12px; color: var(--am-muted); font-size: .875rem; }
.ai-money-content[data-enhanced] .static-ranking { display: none; }
.ai-money-content .percentage-help { margin: 0 0 24px; font-size: .8125rem; color: var(--am-muted); }
.ai-money-content .percentage-help summary { display: flex; gap: 8px; align-items: center; min-height: 36px; width: fit-content; cursor: pointer; list-style: none; }
.ai-money-content .percentage-help summary::before { content: '+'; color: var(--am-yellow); font-size: 1.125rem; }
.ai-money-content .percentage-help[open] summary::before { content: '−'; }
.ai-money-content .percentage-help summary::-webkit-details-marker { display: none; }
.ai-money-content .percentage-help p { font-size: .9375rem; max-width: 760px; line-height: 1.6; margin: 8px 0 22px; }
.ai-money-content .chart { display: flex; flex-direction: column; gap: 24px; }
.ai-money-content .chart-row { display: grid; grid-template-columns: minmax(0,11.875rem) minmax(0,1fr) max-content; gap: 20px; align-items: center; background: var(--am-bg); min-height: 70px; }
.ai-money-content .role-name { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.3; overflow-wrap: break-word; }
.ai-money-content .sample { display: block; color: var(--am-muted); font-size: .75rem; font-weight: normal; margin-top: 6px; }
.ai-money-content .chart-bars { min-width: 0; }
.ai-money-content .track { height: 30px; display: flex; width: 100%; overflow: hidden; background: #202723; }
.ai-money-content .segment { flex: none; min-width: 0; }
.ai-money-content .segment.selected { background: var(--am-yellow); }
.ai-money-content .breakdown { display: flex; gap: 5px 18px; flex-wrap: wrap; font-size: .8125rem; color: var(--am-muted); margin-top: 7px; }
.ai-money-content .share { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; color: var(--am-yellow); text-align: right; align-self: start; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ai-money-content .chart-note { font-size: .8125rem; color: var(--am-muted); margin-top: 22px; }
.ai-money-content .chart-note summary { cursor: pointer; display: inline-block; min-height: 34px; padding: 5px 0; }
.ai-money-content .chart-note p { max-width: 800px; margin-top: 10px; }
.ai-money-content .takeaway { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--am-line); font-size: 1.375rem; line-height: 1.45; font-weight: bold; max-width: 1050px; }
.ai-money-content .takeaway span { display: block; margin-bottom: 8px; color: var(--am-muted); font: .75rem/1.55 "Courier New", monospace; letter-spacing: .13em; }
.ai-money-content .table-scroll { overflow-x: auto; margin-top: 28px; }
.ai-money-content .table-scroll:focus-visible { outline: 2px solid var(--am-yellow); outline-offset: 4px; }
.ai-money-content .models { width: 100%; border-collapse: collapse; text-align: left; min-width: 680px; }
.ai-money-content .models th { font-size: .8125rem; color: var(--am-muted); font-weight: 400; padding: 0 18px 14px 0; vertical-align: bottom; }
.ai-money-content .models td { border-top: 1px solid var(--am-line); padding: 19px 18px 19px 0; font-size: .9375rem; }
.ai-money-content .models th:first-child { width: 23%; }
.ai-money-content .models td small { display: block; color: var(--am-muted); font-size: .875rem; margin-top: 4px; }
.ai-money-content .models .model-row-title { font-weight: 700; color: var(--am-ink); font-size: .9375rem; border-top: 1px solid var(--am-line); padding: 19px 18px 19px 0; vertical-align: middle; }
.ai-money-content .model-picker, .ai-money-content .mobile-models { display: none; }
.ai-money-content .model-choice { background: var(--am-bg); color: var(--am-ink); border: 1px solid #68736b; border-radius: 0; font: inherit; font-size: 1rem; padding: 11px 36px 11px 12px; min-height: 46px; width: 100%; }
.ai-money-content .method-intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 70px; margin-top: 24px; }
.ai-money-content .method-intro > * { min-width: 0; }
.ai-money-content .method-intro p { font-size: 1.0625rem; max-width: 700px; }
.ai-money-content .equation { font-size: clamp(1.5rem,3vw,2.375rem); font-weight: bold; letter-spacing: -.035em; }
.ai-money-content .equation-note { font-size: .8125rem !important; color: var(--am-muted); }
.ai-money-content .method-details { margin-top: 20px; border-top: 1px solid var(--am-line); padding-top: 20px; }
.ai-money-content .method-details summary { font-weight: bold; font-size: 1rem; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; }
.ai-money-content .method-details summary::before { content: '+'; font-size: 1.375rem; font-weight: 400; color: var(--am-yellow); }
.ai-money-content .method-details[open] summary::before { content: '−'; }
.ai-money-content .method-details summary::-webkit-details-marker { display: none; }
.ai-money-content .method-content { max-width: 850px; margin-top: 24px; color: #c9ceca; }
.ai-money-content .method-content h3 { color: var(--am-ink); margin-top: 22px; }
.ai-money-content .downloads { display: grid; grid-template-columns: repeat(3,1fr); margin: 30px 0 20px; }
.ai-money-content .downloads a { text-decoration: none; padding: 14px 24px; min-height: 52px; border-left: 1px solid var(--am-line); display: flex; justify-content: space-between; gap: 12px; font-size: 1.0625rem; }
.ai-money-content .downloads a:first-child { border-left: 0; padding-left: 0; }
.ai-money-content .downloads a:hover { color: var(--am-yellow); }
.ai-money-content .download-note { font-size: .8125rem; color: var(--am-muted); max-width: 900px; }
.ai-money-content .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.ai-money-footer-copy { width: min(1280px,calc(100% - 96px)); margin: 28px auto 0; color: #b9bdbe; font-size: .75rem; line-height: 1.7; }
.ai-money-footer-copy p { max-width: 90ch; margin: 0 0 12px; }
html:has(.ai-money-page) { scroll-padding-top: var(--am-header-offset,90px); }

@media(min-width:1650px) {
  .ai-money-content .wrap { width: min(1440px,calc(100% - 128px)); }
}
@media(max-width:850px) {
  .ai-money-content .wrap, .ai-money-footer-copy { width: calc(100% - 40px); }
  .ai-money-content .hero { padding-top: 34px; }
  .ai-money-content .chart-row { grid-template-columns: minmax(0,9.6875rem) minmax(0,1fr) max-content; gap: 12px; }
  .ai-money-content .share { font-size: 1.5rem; }
  .ai-money-content .method-intro { gap: 25px; }
  .ai-money-content .section { padding: 38px 0; }
}
@media(max-width:760px) {
  /* Only replace the full table after enhancement has succeeded. */
  .ai-money-content[data-enhanced] .table-scroll { display: none; }
  .ai-money-content .model-picker { display: block; margin: 25px 0 5px; }
  .ai-money-content .model-picker label { display: block; font-size: .8125rem; color: var(--am-muted); margin-bottom: 8px; }
  .ai-money-content .mobile-models { display: block; margin: 0; }
  .ai-money-content .mobile-model-row { display: grid; grid-template-columns: minmax(0,1fr) max-content; gap: 16px; border-bottom: 1px solid var(--am-line); padding: 17px 0; align-items: center; }
  .ai-money-content .mobile-model-row dt { font-size: .9375rem; font-weight: 700; line-height: 1.4; }
  .ai-money-content .mobile-model-row dd { margin: 0; text-align: right; font-size: .9375rem; max-width: 10rem; }
  .ai-money-content .mobile-model-row dd span { display: block; color: var(--am-muted); font-size: .875rem; margin-top: 3px; }
  .ai-money-content .model-status { font-size: .8125rem; color: var(--am-muted); margin-top: 10px; }
  .ai-money-content .chart-row { min-height: 0; }
  .ai-money-content .breakdown { gap: 5px 14px; line-height: 1.6; }
  .ai-money-content .track { height: 28px; }
}
@media(max-width:600px) {
  .ai-money-content .wrap, .ai-money-footer-copy { width: calc(100% - 32px); }
  .ai-money-content h1 { font-size: 2.6875rem; }
  .ai-money-content .hero .intro { font-size: 1rem; }
  .ai-money-content .anchors { gap: 14px 22px; }
  .ai-money-content .choice { padding: 9px 12px; font-size: .875rem; }
  .ai-money-content .control-line { gap: 12px; }
  .ai-money-content .chart { gap: 25px; }
  .ai-money-content .chart-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .ai-money-content .role-name { grid-column: 1; grid-row: 1; }
  .ai-money-content .sample { margin: 4px 0 0; }
  .ai-money-content .chart-bars { grid-column: 1/-1; grid-row: 2; }
  .ai-money-content .share { grid-column: 2; grid-row: 1; font-size: 1.4375rem; }
  .ai-money-content .takeaway { font-size: 1.1875rem; }
  .ai-money-content .method-intro { grid-template-columns: 1fr; gap: 12px; }
  .ai-money-content .method-intro p { font-size: 1rem; }
  .ai-money-content .downloads { grid-template-columns: 1fr; margin: 16px 0; }
  .ai-money-content .downloads a, .ai-money-content .downloads a:first-child { border-left: 0; border-bottom: 1px solid var(--am-line); padding: 16px 0; }
  .ai-money-content .section { padding: 34px 0; }
}
@media(max-width:360px) {
  .ai-money-content .choices { display: grid; width: 100%; font-size: .875rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,8em),1fr)); }
  .ai-money-content .role-name { font-size: .9375rem; }
  .ai-money-content .share { font-size: 1.375rem; }
  .ai-money-content .hero .coverage { font-size: .875rem; }
  .ai-money-content .anchors { font-size: .8125rem; }
  .ai-money-content .equation { font-size: 1.625rem; }
  .ai-money-content .mobile-model-row { grid-template-columns: 1fr; gap: 8px; }
  .ai-money-content .mobile-model-row dd { text-align: left; max-width: none; }
  .ai-money-content .mobile-model-row dd span { display: inline; margin-left: 10px; }
}
