/* FinanceTool 2 V3. Display-only refinement; load after base.css/style.css. */
:root {
  --positive: #16734b;
  --positive-bg: #e7f5ed;
  --neutral: #936809;
  --neutral-bg: #fff3cf;
  --negative: #b3443d;
  --negative-bg: #fcebe8;
  --info: #286daf;
  --info-bg: #eaf3ff;
  --paper-line: #dce6e4;
  --paper-muted: #60727a;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}
body { background: radial-gradient(ellipse 70% 650px at 55% 120px, #1038339c, transparent), var(--navy); }
.wordmark, .identity-caption { font-family: Arial, Helvetica, sans-serif; }
.hero { padding-block: 39px 34px; }
.hero h1 { font-size: clamp(48px, 4.3vw, 63px); letter-spacing: -2.8px; font-weight: 500; margin: 17px 0; }
.hero-description { font-size: 16px; color: #bfd3d7; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; }
.site-header nav, .site-header nav button { font-size: 13px; }
.preview-bar { font-size: 12px; }
.preview-bar b { font-size: 10px; }
.edition-box dl div, .edition-status { font-size: 12px; }
.edition-box dd small { font-size: 11px; }
.overview { padding-block: 22px; margin-bottom: 27px; }
.overview span { font-size: 13px; }
.overview small { font-size: 11px; color: #a3bdc5; }
.overview strong { font-weight: 500; font-size: 38px; }
.overview>div:nth-child(1) strong { color: #8ee0b2; }
.overview>div:nth-child(2) strong { color: #efd28a; }
.overview>div:nth-child(3) strong { color: #eea8a2; }
.overview>div:nth-child(4) strong { color: #92c4f2; }
.report-layout { gap: 24px; }
.report-paper { background: #fff; border-radius: 14px; box-shadow: 0 20px 64px #0003; container-type: inline-size; }
.paper-header { padding: 28px 28px 18px; }
.paper-header .eyebrow { color: #5c7785; font-size: 10px; }
.paper-header h2 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; }
.download { font-size: 12px; padding: 11px 13px; border-color: #cadbdc; }
.download svg { width: 18px; height: 18px; }
.report-intro { font-size: 12px; color: #677b83; margin-bottom: 23px; gap: 12px; }
.report-intro strong { color: #385463; }
.archive-tag { font-size: 10px; padding: 5px 7px; border-radius: 4px; background: #edf3f6; color: #5d7583; }
.semantic-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 19px; padding: 0 28px 18px; font-size: 11px; color: #6a7c83; line-height: 1.5; }
.semantic-legend>span { display: inline-flex; gap: 7px; align-items: center; }
.semantic-legend>span:before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: #8da0aa; }
.semantic-legend .legend-positive:before { background: var(--positive); }
.semantic-legend .legend-neutral:before { background: #d7ab2f; }
.semantic-legend .legend-negative:before { background: var(--negative); }
.semantic-legend .legend-info:before { background: var(--info); }
.tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; padding: 18px 22px; background: #f3f7f8; border-color: #dfe8eb; overflow: visible; }
.tabs button { --tab-accent: var(--info); --tab-tint: var(--info-bg); position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "icon count" "copy copy"; align-content: start; gap: 12px 8px; min-width: 0; min-height: 112px; white-space: normal; text-align: left; padding: 15px 13px 13px; border: 1px solid #dbe5e8; border-top: 3px solid #a3b7c3; border-radius: 7px; color: #425d6a; background: #fff; font-size: 14px; box-shadow: 0 2px 5px #102b3c04; transition: background .15s, border-color .15s, box-shadow .15s; }
.tabs button[data-tab="buys"] { --tab-accent: var(--positive); --tab-tint: var(--positive-bg); }
.tabs button[data-tab="rebound"] { --tab-accent: var(--neutral); --tab-tint: var(--neutral-bg); }
.tabs button[data-tab="risks"] { --tab-accent: var(--negative); --tab-tint: var(--negative-bg); }
.tabs button[data-tab="earnings"] { --tab-accent: var(--info); --tab-tint: var(--info-bg); }
.tabs button[data-tab="outlook"] { --tab-accent: #4f6e93; --tab-tint: #edf2fa; }
.tabs button:hover { background: var(--tab-tint); border-color: var(--tab-accent); }
.tabs button[aria-selected="true"] { background: var(--tab-tint); border-color: var(--tab-accent); color: var(--tab-accent); box-shadow: 0 0 0 1px var(--tab-accent); }
.tabs button span, .tabs button[aria-selected="true"] span { background: transparent; border: 0; padding: 0; margin: 0; border-radius: 0; font-size: inherit; }
.tabs button .tab-icon, .tabs button[aria-selected="true"] .tab-icon { grid-area: icon; display: inline-flex; width: 27px; height: 25px; align-items: center; color: var(--tab-accent); }
.tab-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs button .tab-count, .tabs button[aria-selected="true"] .tab-count { grid-area: count; justify-self: end; align-self: start; padding: 3px 7px; background: var(--tab-tint); color: var(--tab-accent); font-size: 11px; font-weight: 700; border: 1px solid #ccd7dc70; border-radius: 5px; white-space: nowrap; }
.tabs button .tab-copy { grid-area: copy; display: block; min-width: 0; }
.tab-copy strong { font-size: 14px; font-weight: 650; display: block; line-height: 1.25; overflow-wrap: anywhere; letter-spacing: -.2px; }
.tab-copy small { display: block; font-size: 10px; color: #74858d; line-height: 1.4; margin-top: 5px; font-weight: 400; }
.tabs button[aria-selected="true"] .tab-copy small { color: #536b72; }
.search-row { padding: 18px 28px; gap: 18px; }
.search { gap: 11px; }
.search svg { width: 19px; height: 19px; flex-shrink: 0; }
.search input { font-size: 14px; padding: 8px 0; }
.search-row>button { font-size: 12px; }
.section-description { padding: 27px 28px 18px; }
.section-description h3 { font-size: 22px; letter-spacing: -.45px; font-weight: 600; color: #163f4c; line-height: 1.3; }
.section-description p { font-size: 14px; line-height: 1.65; color: var(--paper-muted); margin-top: 10px; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-kicker { color: var(--info); text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; line-height: 1.5; font-weight: 700; }
.stock summary { grid-template-columns: 28px minmax(0,1fr) auto 16px; gap: 13px; padding-block: 24px; }
.stock h3, .stock.changed h3 { font-size: 18px; font-weight: 600; letter-spacing: -.25px; line-height: 1.4; }
.company-line { gap: 9px; margin-bottom: 7px; }
.rank { font-size: 12px; color: #83939c; padding-top: 5px; }
.rank-move { font-size: 10px; color: var(--info); }
.rank-move.down { color: #8e7955; }
.ticker { font-size: 11px; color: #647b88; background: #edf3f6; padding: 4px 6px; border-radius: 4px; letter-spacing: .4px; }
.headline-preview { font-size: 14px; line-height: 1.6; color: #5f7480; -webkit-line-clamp: 2; }
.signal-line { font-size: 14px; line-height: 1.6; color: #5f7480; margin-top: 4px; }
.quote-line { font-size: 14px; line-height: 1.6; color: #5f7480; margin-top: 4px; }
.badge { font-size: 11px; font-weight: 650; padding: 6px 9px; border-radius: 5px; line-height: 1.35; }
.badge.buy { color: var(--positive); background: var(--positive-bg); border: 1px solid #b9dfc7; }
.badge.rebound, .badge.risk-neutral { color: var(--neutral); background: var(--neutral-bg); border: 1px solid #eedca3; }
.badge.risk { color: var(--negative); background: var(--negative-bg); border: 1px solid #ebc2bc; }
.rating-previous { font-size: 10px; margin-top: 6px; }
.chevron { font-size: 20px; color: #879ba6; }
.details-body { margin-left: 41px; padding-bottom: 25px; }
.news-item { border-left-color: #d7e2e8; padding-left: 15px; margin-bottom: 21px; }
.news-item p { font-size: 15px; color: #263e4c; line-height: 1.65; }
.news-item .meta { font-size: 11px; color: #66757d; line-height: 1.6; margin-top: 7px; }
.news-item .meta strong { color: #56758a; font-weight: 500; }
.risk-note { font-size: 12px; color: #a6443e; line-height: 1.6; margin-top: 7px; }
.risk-note.neutral { color: #8d6b1d; }
.row-risk-label { font-size: 10px; color: var(--negative); display: inline-flex; background: var(--negative-bg); border-radius: 3px; padding: 3px 6px; margin-top: 8px; }
.missing { font-size: 13px; }
.paper-footer { font-size: 11px; background: #f5f8f9; border-color: #e0e8eb; color: #718994; }
.paper-footer i { background: var(--info); }
.outlook-table { font-size: 14px; }
.outlook-table caption { font-size: 12px; }
.outlook-table th { font-size: 12px; font-weight: 500; }
.outlook-table td { color: var(--positive); font-variant-numeric: tabular-nums; }
.earnings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0 28px 26px; }
.financial-card { background: #f4f8fc; border: 1px solid #d8e5ef; border-top: 3px solid #86acd1; border-radius: 7px; padding: 21px; min-width: 0; }
.financial-card .section-kicker, .financial-card .eyebrow { color: #5e7fa0; font-size: 10px; }
.financial-card h3 { font-size: 15px; color: #2f5572; margin-bottom: 9px; font-weight: 600; }
.financial-value { font-size: 20px; font-weight: 600; letter-spacing: -.4px; line-height: 1.3; color: #244b6c; margin: 11px 0 10px; }
.financial-note { font-size: 12px; line-height: 1.65; color: #6a8192; }
.earnings-company { margin: 0 28px; border-top: 1px solid var(--paper-line); }
.earnings-company>summary { display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 15px; padding: 21px 0; }
.earnings-company>summary::-webkit-details-marker { display: none; }
.earnings-company>summary:after { content: "+"; font-size: 22px; color: #68869e; font-weight: 300; flex-shrink: 0; }
.earnings-company[open]>summary:after { content: "−"; }
.earnings-company-heading { min-width: 0; }
.earnings-company-heading h3, .earnings-company-heading strong { font-size: 17px; color: #264658; font-weight: 600; line-height: 1.4; }
.earnings-company-heading p, .earnings-company-heading small { font-size: 12px; color: #78909d; display: block; line-height: 1.6; margin-top: 5px; }
.earnings-news-list { padding: 0 0 22px 14px; }
.earnings-news-list .news-item { margin-bottom: 19px; border-left-color: #a8c5df; }
.earnings-news-list .news-item:last-child { margin-bottom: 0; }
.earnings-note { background: #eef5fc; border: 1px solid #d9e7f3; }
.earnings-note>p:last-child { font-size: 14px; color: #456b86; }
.simulation-controls { border-color: #79a8d855; background: linear-gradient(110deg,#102c40,#10252f); padding: 24px 28px; }
.simulation-controls .eyebrow { color: #8dc3f1; font-size: 10px; }
.simulation-controls h2 { font-weight: 600; font-size: 23px; letter-spacing: -.4px; }
.simulation-controls>div>p:not(.eyebrow) { font-size: 13px; color: #bdd1df; }
.simulation-note { font-size: 11px!important; color: #98b5c8; }
.simulate-button { background: #91c4f5; color: #113e67; font-size: 13px; }
.simulate-button:hover { background: #afd7fc; }
.simulate-button:disabled { background: #91c4f519; color: #adc9e1; }
.reset-button { font-size: 12px; color: #a7c4dc; }
.demo-progress span { font-size: 11px; }
.demo-progress span.active { color: #badbfb; }
.demo-progress span.active:before { background: #83b8ec; }
.demo-progress>i { background: #91c4f531; }
.update-notice { background: #e8f2ff; border-bottom-color: #c8dcf1; padding: 20px 26px; }
.update-symbol { color: var(--info); }
.update-notice strong { font-size: 15px; color: #205b8f; }
.update-notice p { font-size: 12px; color: #63819f; }
.update-notice button { color: #fff; background: #286daf; font-size: 12px; padding: 12px 15px; }
.update-notice.applied { background: #f0f6ff; }
.update-notice.applied button { color: #286daf; border-color: #b9d1eb; background: white; }
.change-summary { background: #f5f9ff; border-color: #dce7f5; padding: 23px 28px; }
.demo-tag { color: #426d99; background: #e3eefb; font-size: 10px; }
.change-summary h3 { font-size: 18px; font-weight: 600; color: #2b5273; }
.change-chips button { font-size: 12px; border-color: #d3e1ee; color: #355a7c; padding: 11px 13px; }
.change-chips button:hover { border-color: #81acd5; }
.change-chips b { font-size: 11px; color: #7791aa; }
.change-summary>p { font-size: 12px; color: #71859b; }
.filter-tools { background: #f5f8fc; color: #778b9d; font-size: 11px; padding: 15px 28px; }
.filter-tools label { color: #325c83; font-size: 12px; }
.filter-tools label span { background: #e2edf9; font-size: 10px; }
.filter-tools input { accent-color: #367ab9; width: 15px; height: 15px; }
.stock.changed { border-left-color: #79a9d8; background: linear-gradient(90deg,#edf5ff,transparent 80%); }
.stock.changed-rating { border-left-color: #d5ad50; background: linear-gradient(90deg,#fff7e5,transparent 80%); }
.change-badges span { color: #366e9d; background: #e1eefb; font-size: 9px; padding: 4px 6px; }
.change-badges .rating-change { color: #987020; background: #f9edcc; }
.news-item.demo-news { border-color: #78a7d7; background: #f0f6ff; padding: 13px 15px; }
.new-news-label { color: #3b75a9; font-size: 10px; margin-bottom: 8px; }
.previous-news-label { font-size: 10px; color: #8093a0; margin-block: 22px 15px; }
@keyframes highlight-update { from { background-color: #d8ebff; } to { background-color: transparent; } }
.context>section { padding: 24px; border-radius: 10px; }
.context .eyebrow { font-size: 10px; }
.market-card>p:not(.eyebrow) { font-size: 13px; }
.market-card h2 { font-size: 32px; font-weight: 500; }
.indicator>div:first-child { font-size: 13px; }
.indicator strong { font-size: 27px; }
.indicator>small, .scale-labels, .rate small, .rate-details, .rates-card summary { font-size: 11px; }
.context .context-note { font-size: 11px!important; color: #a5bec8!important; }
.event-card h3 { font-size: 17px; font-weight: 600; }
.event-card>p:not(.eyebrow):not(.event-date) { font-size: 13px; }
.event-date, .event-card a, .rate>span { font-size: 12px; }
.version-option { padding-block: 15px; }
.version-option strong { font-size: 13px; }
.version-option small { font-size: 11px; }
.version-option .version-label { font-size: 9px; }
.method-details summary { font-size: 15px; }
.method-details details p { font-size: 14px; }
.method>div>p:last-child { font-size: 14px; }
.empty, #search-status { font-size: 13px; }
@container (max-width: 780px) {
  .tabs { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .tabs button { grid-column: span 2; min-height: 105px; }
  .tabs button[data-tab="earnings"], .tabs button[data-tab="outlook"] { grid-column: span 3; }
}
@container (max-width: 440px) {
  .tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 16px; }
  .tabs button, .tabs button[data-tab="earnings"], .tabs button[data-tab="outlook"] { grid-column: auto; min-height: 103px; padding: 13px 11px; }
  .tabs button[data-tab="outlook"] { grid-column: 1/-1; grid-template-columns: 28px 1fr auto; grid-template-areas: "icon copy count"; min-height: 72px; align-items: center; }
  .tab-copy strong { font-size: 13px; }
  .tab-copy small { font-size: 10px; }
  .earnings-grid { grid-template-columns: 1fr; }
}
@media(max-width: 1120px) {
  .report-layout { grid-template-columns: minmax(0,1fr) 250px; }
  .hero-description { font-size: 15px; }
  .overview>div { gap: 12px; }
  .overview strong { font-size: 33px; }
  .overview span { font-size: 12px; }
  .overview small { font-size: 10px; }
  .stock h3, .stock.changed h3 { font-size: 17px; }
  .stock summary { gap: 10px; grid-template-columns: 24px minmax(0,1fr) auto 14px; }
  .details-body { margin-left: 34px; }
}
@media(max-width: 900px) {
  .report-layout { grid-template-columns: 1fr; }
  .context { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .context>section { margin: 0; }
}
@media(max-width: 560px) {
  .hero { padding-block: 29px 24px; }
  .hero h1 { font-size: 47px; letter-spacing: -2px; }
  .hero-description { font-size: 14px; }
  .site-header nav, .site-header nav button { font-size: 11px; }
  .preview-bar { font-size: 10px; }
  .preview-bar b { font-size: 9px; }
  .overview strong { font-size: 30px; }
  .overview span { font-size: 11px; }
  .overview small { font-size: 10px; max-width: 115px; }
  .paper-header { padding: 22px 18px 16px; }
  .paper-header h2 { font-size: 21px; }
  .paper-header .eyebrow { font-size: 10px; }
  .download { padding: 10px; }
  .report-intro { margin-inline: 18px; font-size: 11px; gap: 8px; }
  .semantic-legend { padding: 0 18px 18px; font-size: 10px; gap: 8px 13px; }
  .search-row { padding: 15px 18px; flex-wrap: wrap; gap: 10px; }
  .search { flex-basis: 100%; }
  .search input { font-size: 13px; }
  .search-row>button { font-size: 11px; }
  .section-description { padding: 24px 18px 15px; }
  .section-description h3 { font-size: 21px; }
  .section-description p { font-size: 13px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .stock summary { grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; position: relative; padding-block: 21px; }
  .stock .chevron { display: none; }
  .stock h3, .stock.changed h3 { font-size: 16px; }
  .stock .company-line { gap: 6px; }
  .ticker { font-size: 10px; padding: 3px 5px; }
  .badge { font-size: 10px; padding: 5px 7px; }
  .rank { font-size: 11px; }
  .rank-move { font-size: 8px; }
  .details-body { margin-left: 28px; }
  .headline-preview { font-size: 13px; }
  .signal-line { font-size: 13px; }
  .quote-line { font-size: 13px; }
  .news-item p { font-size: 14px; }
  .news-item .meta { font-size: 11px; }
  .news-item { padding-left: 12px; }
  .risk-note { font-size: 12px; }
  .row-risk-label { font-size: 9px; }
  .rating-previous { font-size: 9px; }
  .change-badges span { font-size: 8px; }
  .new-news-label { font-size: 9px; }
  .previous-news-label { font-size: 9px; }
  .paper-footer { font-size: 10px; padding-inline: 18px; }
  .context { grid-template-columns: 1fr; }
  .earnings-grid { padding: 0 18px 22px; gap: 12px; }
  .financial-card { padding: 18px; }
  .financial-value { font-size: 20px; }
  .financial-note { font-size: 12px; }
  .earnings-company { margin-inline: 18px; }
  .earnings-company-heading h3, .earnings-company-heading strong { font-size: 16px; }
  .earnings-news-list { padding-left: 0; }
  .simulation-controls { padding: 22px 18px; }
  .simulation-controls h2 { font-size: 22px; }
  .simulation-controls>div>p:not(.eyebrow) { font-size: 13px; }
  .simulation-note { font-size: 10px!important; }
  .demo-progress span { font-size: 9px; }
  .update-notice { padding: 19px 18px; }
  .update-notice strong { font-size: 15px; }
  .update-notice p { font-size: 12px; }
  .change-summary { padding: 21px 18px; }
  .change-summary h3 { font-size: 18px; }
  .change-chips button { font-size: 12px; padding: 12px; }
  .change-chips b { font-size: 10px; }
  .filter-tools { padding: 14px 18px; }
  .outlook-table { font-size: 12px; }
  .outlook-table th { font-size: 11px; }
  .outlook-table td, .outlook-table th { padding: 14px 7px; }
  .method-details summary { font-size: 14px; }
  .method-details details p { font-size: 13px; }
}
@media(prefers-reduced-motion: reduce) {
  .tabs button { transition: none; }
  .stock.just-updated, .update-notice { animation: none; }
}

/* Final integration with the V3 earnings markup. */
.financial-value { display: block; }
.financial-card>p { font-size: 13px; line-height: 1.65; color: #6a8192; }
.earnings-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dbe5ed; background: #f8fafc; border-radius: 6px; margin: 0 28px 26px; padding: 13px 16px; }
.earnings-toolbar .search { min-width: 0; }
.earnings-toolbar .search input { font-size: 13px; }
.earnings-toolbar>span { flex-shrink: 0; color: #6d879b; font-size: 11px; }
#panel-earnings>.section-heading-row { margin: 28px 28px 16px; }
#panel-earnings>.section-heading-row h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.35px; color: #24495f; line-height: 1.4; }
#panel-earnings>.section-heading-row>span { flex-shrink: 0; font-size: 11px; color: #6e8a9f; background: #edf4fb; border: 1px solid #dbe8f4; padding: 5px 8px; border-radius: 4px; }
.announcements-note { margin: -2px 28px 21px; font-size: 13px; color: #738796; line-height: 1.65; }
.earnings-company-heading { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.earnings-company-heading h4 { margin: 0; font-size: 17px; color: #264658; font-weight: 600; line-height: 1.4; letter-spacing: -.2px; }
.earnings-company>summary:after { display: none; }
.earnings-company>summary>span { display: inline-flex; gap: 15px; flex-shrink: 0; align-items: center; color: #6e8a9f; font-size: 11px; }
.earnings-company>summary>span>b { font-size: 22px; line-height: 1; color: #6e8a9f; font-weight: 300; }
.earnings-company[open]>summary>span>b { transform: rotate(45deg); }
@media(max-width: 560px) {
  .earnings-toolbar { margin: 0 18px 21px; padding: 13px; flex-wrap: wrap; gap: 7px; }
  .earnings-toolbar .search { flex-basis: 100%; }
  .earnings-toolbar>span { font-size: 11px; padding-left: 30px; }
  #panel-earnings>.section-heading-row { margin: 25px 18px 15px; flex-direction: row; align-items: center; }
  #panel-earnings>.section-heading-row h3 { font-size: 18px; }
  #panel-earnings>.section-heading-row>span { font-size: 10px; }
  .announcements-note { margin: -2px 18px 18px; font-size: 12px; }
  .earnings-company-heading h4 { font-size: 16px; }
  .earnings-company>summary { gap: 10px; }
  .earnings-company>summary>span { font-size: 10px; gap: 8px; }
}

.financial-card .section-kicker { display: block; margin-bottom: 12px; }
.financial-card .financial-value { display: block; margin: 0 0 10px; line-height: 1.25; }
