/* /analyst-ratings on the site's Metronic tokens (--tw-*), so it follows pogosov.com in both themes. */
body > .flex.grow, body > .flex.grow > .wrapper { min-width: 0; }

.ar-page {
  --ar-sbuy: #166534; --ar-line-price: #2563eb; --ar-muted-strong: var(--tw-gray-700);
  --ar-ink: var(--tw-gray-900); --ar-ink-2: var(--tw-gray-700); --ar-muted: var(--tw-gray-600); --ar-line: var(--tw-gray-200);
  --ar-soft: var(--tw-gray-100);
  --ar-up: #15803d; --ar-down: #be123c; --ar-hold: #a16207;
  --ar-up-bg: rgba(22, 163, 74, .12); --ar-down-bg: rgba(225, 29, 72, .11); --ar-hold-bg: rgba(202, 138, 4, .14);
  --ar-fresh: rgba(59, 130, 246, .13);
  padding-bottom: 32px;
}
.dark .ar-page {
  --ar-sbuy: #16a34a; --ar-line-price: #60a5fa; --ar-muted-strong: var(--tw-gray-700);
  --ar-up: #4ade80; --ar-down: #f87171; --ar-hold: #facc15;
  --ar-up-bg: rgba(74, 222, 128, .13); --ar-down-bg: rgba(248, 113, 113, .13); --ar-hold-bg: rgba(250, 204, 21, .12);
  --ar-fresh: rgba(96, 165, 250, .16);
}
.ar-page .card { background: var(--tw-card-background-color); border: var(--tw-card-border); border-radius: .75rem; box-shadow: var(--tw-card-box-shadow); }
.ar-page .ar-up { color: var(--ar-up); }          /* over the tables' and cards' own text colour */
.ar-page .ar-down { color: var(--ar-down); }
.ar-muted { color: var(--ar-muted); }

.ar-heading { margin: 4px 0 14px; }
.ar-eyebrow { font-size: 11px; letter-spacing: .08em; color: var(--ar-muted); font-weight: 600; margin-bottom: 4px; }
.ar-heading h1 { font-size: 24px; font-weight: 700; color: var(--ar-ink); margin-bottom: 6px; }
.ar-heading .ar-muted { max-width: 880px; font-size: 14px; line-height: 1.55; }

.ar-status { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 14px;
  padding: 10px 14px; font-size: 13px; color: var(--ar-ink-2); text-align: left; }
.ar-status b { color: var(--ar-ink); font-weight: 600; }
.ar-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ar-dot.is-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ar-dot.is-off { background: var(--tw-gray-400); }
.ar-warn { color: var(--ar-down); }

.ar-tabs { display: flex; gap: 2px; margin: 16px 0 12px; border-bottom: 1px solid var(--ar-line); overflow-x: auto; scrollbar-width: none; }
.ar-tabs a { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--ar-ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.ar-tabs a:hover { color: var(--ar-ink); }
.ar-tabs a.is-active { color: var(--tw-primary); border-color: var(--tw-primary); }

.ar-filters { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px;
  padding: 10px 12px; margin-bottom: 12px; }
.ar-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ar-chips a, .ar-toggle { padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ar-ink-2); border: 1px solid var(--ar-line); }
.ar-chips a:hover, .ar-toggle:hover { color: var(--ar-ink); border-color: var(--tw-gray-300); }
.ar-chips a.is-active, .ar-toggle.is-active { color: var(--tw-primary); border-color: var(--tw-primary); background: var(--tw-primary-light); }

.ar-panel { padding: 4px 0 0; margin-bottom: 14px; overflow: hidden; }
.ar-scroll { overflow-x: auto; }
.ar-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.ar-table th, .ar-table td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ar-line); }
.ar-table thead th { font-size: 11.5px; font-weight: 500; color: var(--ar-muted); background: var(--ar-soft); white-space: nowrap; }
.ar-table thead th a { color: inherit; }
.ar-holdings thead th { white-space: normal; vertical-align: bottom; }
.ar-holdings { min-width: 980px; }
.ar-table thead th a.is-sorted { color: var(--tw-primary); }
.ar-table thead th a.is-sorted::after { content: " ↓"; }
.ar-table td { color: var(--ar-ink); }
.ar-table td small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ar-muted); line-height: 1.4; }
.ar-table .ar-num { text-align: right; white-space: nowrap; }
.ar-table tbody tr:hover td { background: var(--ar-soft); }
.ar-row.is-fresh td { animation: ar-fresh 8s ease-out; }
@keyframes ar-fresh { from { background: var(--ar-fresh); } to { background: transparent; } }
.ar-time { white-space: nowrap; }
.ar-stock a { font-weight: 600; color: var(--tw-primary); }
.ar-stock small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-etf { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 600; line-height: 17px;
  color: var(--ar-muted); background: var(--ar-soft); vertical-align: 1px; }
.ar-analyst { min-width: 170px; }
.ar-rank { white-space: nowrap; }
.ar-ai { display: inline-block; padding: 0 5px; border-radius: 4px; font-size: 10.5px; font-weight: 700; color: var(--tw-primary); background: var(--tw-primary-light); }
.ar-action { font-size: 12px; color: var(--ar-ink-2); white-space: nowrap; }
.ar-action.is-upgraded { color: var(--ar-up); font-weight: 600; }
.ar-action.is-downgraded { color: var(--ar-down); font-weight: 600; }
.ar-action.is-initiated { color: var(--tw-primary); font-weight: 600; }
.ar-pos, .ar-cons { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ar-pos.is-buy, .ar-cons.is-strong_buy, .ar-cons.is-moderate_buy { color: var(--ar-up); background: var(--ar-up-bg); }
.ar-cons.is-moderate_buy { background: transparent; box-shadow: inset 0 0 0 1px var(--ar-up-bg); }
.ar-pos.is-hold, .ar-cons.is-hold { color: var(--ar-hold); background: var(--ar-hold-bg); }
.ar-pos.is-sell, .ar-cons.is-strong_sell, .ar-cons.is-moderate_sell { color: var(--ar-down); background: var(--ar-down-bg); }
.ar-link a { color: var(--ar-muted); font-size: 15px; }
.ar-link a:hover { color: var(--tw-primary); }
.ar-empty td { padding: 22px 12px; color: var(--ar-muted); text-align: center; }
.ar-note { padding: 10px 14px 12px; font-size: 12px; color: var(--ar-muted); }
.ar-note a { color: var(--tw-primary); }

.ar-dist { min-width: 120px; }
.ar-bar { display: flex; width: 100px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--ar-soft); margin-top: 6px; }
.ar-bar i { display: block; height: 100%; }
.ar-bar i.is-buy { background: var(--ar-up); }
.ar-bar i.is-hold { background: var(--ar-hold); }
.ar-bar i.is-sell { background: var(--ar-down); }
.ar-dist small { margin-top: 4px; }

.ar-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.ar-kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ar-kpi > span { font-size: 12px; color: var(--ar-muted); }
.ar-kpi strong { font-size: 20px; font-weight: 700; color: var(--ar-ink); }
.ar-kpi strong .ar-cons { font-size: 14px; padding: 3px 10px; }
.ar-kpi strong em { font-style: normal; font-size: 14px; font-weight: 600; margin-left: 6px; }
.ar-kpi small { font-size: 12px; color: var(--ar-muted); line-height: 1.45; }
@media (max-width: 1100px) { .ar-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ar-summary { grid-template-columns: minmax(0, 1fr); } .ar-heading h1 { font-size: 21px; } }

.ar-method { padding: 12px 16px; font-size: 13px; color: var(--ar-ink-2); }
.ar-method summary { cursor: pointer; font-weight: 600; color: var(--ar-ink); }
.ar-method ul { margin: 10px 0 2px 18px; list-style: disc; display: grid; gap: 6px; line-height: 1.55; }

/* ---- the company page ---- */
.ar-heading .ar-eyebrow a { color: var(--ar-muted); }
.ar-heading .ar-eyebrow a:hover { color: var(--tw-primary); }
.ar-co-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 14px; }
.ar-co-price { font-size: 22px; font-weight: 700; color: var(--ar-ink); }
.ar-co-meta .ar-etf { font-size: 11.5px; padding: 1px 7px; margin: 0; }
.ar-page h2 { font-size: 16px; font-weight: 600; color: var(--ar-ink); }
.ar-pad { padding: 16px 18px; }
.ar-sub { margin: 4px 0 10px; font-size: 13px; }
.ar-subhead { font-size: 13px; font-weight: 600; color: var(--ar-ink-2); margin: 14px 0 8px; }
.ar-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 14px 10px; }
.ar-panel-head h2 { margin-right: auto; }
.ar-filters > .ar-muted { font-size: 13px; }

.ar-co-top { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.ar-co-cons, .ar-co-fc { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ar-co-cons { align-items: center; text-align: center; }
.ar-co-cons h2, .ar-co-fc h2 { align-self: stretch; text-align: left; }
.ar-co-cons small, .ar-co-fc small { font-size: 12px; color: var(--ar-muted); }
.ar-cons-big { font-size: 17px; padding: 5px 14px; }
.ar-donut { width: 150px; height: 150px; }
.ar-donut circle { fill: none; stroke-width: 13; }
.ar-donut .d-track { stroke: var(--ar-soft); }
.ar-donut .d-buy { stroke: var(--ar-up); }
.ar-donut .d-hold { stroke: var(--ar-hold); }
.ar-donut .d-sell { stroke: var(--ar-down); }
.ar-donut .d-n { font-size: 30px; font-weight: 700; fill: var(--ar-ink); }
.ar-donut .d-word { font-size: 12px; fill: var(--ar-muted); }
.ar-co-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; font-weight: 600; }
.ar-co-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.ar-co-legend .is-sbuy::before { background: var(--ar-sbuy); }
.ar-co-legend .is-buy::before { background: var(--ar-up); }
.ar-co-legend .is-hold::before { background: var(--ar-hold); }
.ar-co-legend .is-sell::before { background: var(--ar-down); }
.ar-co-fc-head { display: flex; gap: 18px; align-items: flex-start; }
.ar-co-fc-head > div { display: flex; flex-direction: column; flex: none; }
.ar-co-fc-head strong { font-size: 30px; font-weight: 700; color: var(--ar-ink); line-height: 1.1; }
.ar-co-fc-head span { font-size: 13px; font-weight: 600; }
.ar-co-fc-head p { font-size: 13px; line-height: 1.55; color: var(--ar-ink-2); max-width: 620px; }
.ar-co-fc-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; color: var(--ar-ink-2); border-top: 1px solid var(--ar-line); padding-top: 10px; }
.ar-co-fc-foot b { font-size: 16px; color: var(--ar-ink); margin-left: 4px; }
.ar-co-fc-foot .c-high-t { color: var(--ar-up); }
.ar-co-fc-foot .c-low-t { color: var(--ar-down); }

.ar-chart { width: 100%; height: auto; display: block; font-family: inherit; }
.ar-chart .c-grid { stroke: var(--ar-line); stroke-width: 1; }
.ar-chart .c-axis { font-size: 11px; fill: var(--ar-muted); }
.ar-chart .c-strong { font-weight: 700; fill: var(--ar-ink-2); }
.ar-chart .c-future { fill: var(--ar-soft); opacity: .6; }
.ar-chart .c-price { fill: none; stroke: var(--ar-line-price); stroke-width: 2; stroke-linejoin: round; }
.ar-chart .c-now { fill: var(--tw-card-background-color); stroke: var(--ar-line-price); stroke-width: 2; }
.ar-chart .c-target { stroke-width: 1.8; stroke-dasharray: 5 4; }
.ar-chart .c-high { stroke: var(--ar-up); fill: var(--ar-up); }
.ar-chart .c-avg { stroke: var(--ar-muted-strong); fill: var(--ar-muted-strong); }
.ar-chart .c-low { stroke: var(--ar-down); fill: var(--ar-down); }
.ar-chart text.c-high, .ar-chart text.c-avg, .ar-chart text.c-low { stroke: none; }
.ar-chart .c-end { font-size: 11px; }
.ar-chart .c-end-v { font-size: 13px; font-weight: 700; }
.ar-chart .t-sbuy { fill: var(--ar-sbuy); }
.ar-chart .t-buy { fill: var(--ar-up); }
.ar-chart .t-hold { fill: var(--ar-hold); }
.ar-chart .t-sell { fill: var(--ar-down); }

.ar-stars { position: relative; display: inline-block; margin-left: 6px; font-size: 11px; letter-spacing: 1px; line-height: 1; vertical-align: 1px; }
.ar-stars i { font-style: normal; color: var(--tw-gray-300); }
.ar-stars b { position: absolute; left: 0; top: 0; width: var(--fill); overflow: hidden; white-space: nowrap; color: #f59e0b; font-weight: 400; }
.ar-co-table td.ar-analyst b { font-weight: 600; }

.ar-cover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ar-cover-card { border: 1px solid var(--ar-line); border-radius: .6rem; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-cover-card > .ar-muted { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ar-cover-card > b { font-size: 15px; color: var(--ar-ink); }
.ar-cover-card > small { font-size: 12px; color: var(--ar-muted); }
.ar-cover-nums { display: flex; gap: 18px; margin-top: 6px; font-size: 12px; color: var(--ar-ink-2); }
.ar-cover-nums span { display: flex; flex-direction: column; }
.ar-cover-nums b { font-size: 16px; color: var(--ar-ink); }
.ar-cover-nums b.ar-up { color: var(--ar-up); }
.ar-cover-nums small { color: var(--ar-muted); }

.ar-trend-wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 10px; }
.ar-trend-table { min-width: 0; }
.ar-est { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ar-est p { font-size: 13px; line-height: 1.55; color: var(--ar-ink-2); margin-top: 6px; }
.ar-sector { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ar-sector-item { border: 1px solid var(--ar-line); border-radius: .6rem; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ar-sector-item a { font-weight: 700; color: var(--tw-primary); }
.ar-sector-item small { font-size: 12px; color: var(--ar-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-sector-item .ar-cons { align-self: flex-start; font-size: 11px; }
.ar-co-facts { margin: 10px 0 8px 18px; list-style: disc; display: grid; gap: 4px; }
.ar-company .ar-method p { line-height: 1.6; }
.ar-company .ar-note { padding: 4px 2px 12px; }

@media (max-width: 1000px) {
  .ar-co-top, .ar-trend-wrap, .ar-est { grid-template-columns: minmax(0, 1fr); }
  .ar-cover { grid-template-columns: minmax(0, 1fr); }
  .ar-sector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-co-fc-head { flex-direction: column; gap: 8px; }
}

/* ---- search: in the headings, the search results and the "no such stock" page ---- */
.ar-heading-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.ar-heading-row h1 { margin-bottom: 0; }
.ar-heading-row + .ar-muted, .ar-heading-row + .ar-co-meta { margin-top: 6px; }
.ar-search { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.ar-search input { width: 270px; max-width: 100%; }
.ar-filters .ar-search { flex: 1 1 auto; }
.ar-filters .ar-search input { width: 360px; }
.ar-found { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.ar-found-item { border: 1px solid var(--ar-line); border-radius: .6rem; padding: 10px 12px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px; min-width: 0; color: var(--ar-ink); }
.ar-found-item:hover { border-color: var(--tw-primary); }
.ar-found-item b { color: var(--tw-primary); font-weight: 700; }
.ar-found-item small { max-width: 100%; font-size: 12px; color: var(--ar-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-found-item .ar-cons { font-size: 11px; }
.ar-results { margin: 14px 0 0; }
@media (max-width: 560px) {
  .ar-search { width: 100%; }
  .ar-search input, .ar-filters .ar-search input { flex: 1 1 auto; width: auto; min-width: 0; }
}

/* ---- the ticker filter and the market cap groups ---- */
.ar-chips-label { align-self: center; font-size: 12px; color: var(--ar-muted); margin-right: 2px; }
.ar-chips a small { font-size: 11px; color: var(--ar-muted); margin-left: 4px; }
.ar-chips a.is-active small { color: inherit; opacity: .8; }
.ar-tfilter input { width: 240px; }
.ar-clear { font-size: 19px; line-height: 1; color: var(--ar-muted); padding: 0 4px; }
.ar-clear:hover { color: var(--ar-down); }
.ar-tmatch { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: -4px 2px 10px; font-size: 13px; color: var(--ar-ink-2); }
.ar-tmatch a { font-weight: 700; color: var(--tw-primary); }
.ar-tmatch span { color: var(--ar-muted); font-size: 12px; margin-right: 4px; }
.ar-nowrap { white-space: nowrap; }

/* the feed's date column and the leveraged funds' notice */
.ar-time b { font-weight: 600; color: var(--ar-ink); }
.ar-notice { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--tw-primary); border-radius: .5rem;
  background: var(--tw-primary-light); font-size: 13px; line-height: 1.55; color: var(--ar-ink-2); }

/* analysts: the table (?view=analysts), the links to an analyst's page */
.ar-person { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--tw-gray-400); text-underline-offset: 3px; }
.ar-person:hover { color: var(--tw-primary); text-decoration-color: currentColor; }
.ar-analysts { min-width: 940px; }
.ar-analysts thead th { white-space: normal; vertical-align: bottom; }
.ar-analysts .ar-person { font-weight: 600; color: var(--ar-ink); }
.ar-analysts .ar-person:hover { color: var(--tw-primary); }
.ar-analysts td b { font-weight: 600; }
.ar-tick { font-weight: 700; color: var(--tw-primary); }
.ar-last { white-space: nowrap; }
.ar-heading h1 .ar-muted { font-weight: 500; }
.ar-heading .ar-muted a { color: var(--tw-primary); }

/* price reactions: the column of the rating tables and the study view (?view=study) */
.ar-react { white-space: nowrap; }
.ar-react small { font-size: 11px; }
.ar-findings { margin: 10px 0 8px 18px; list-style: disc; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--ar-ink-2); }
.ar-findings b { color: var(--ar-ink); font-weight: 600; }
.ar-study .ar-sub { max-width: 980px; line-height: 1.55; }
.ar-study-table { min-width: 860px; }
.ar-study-table td:first-child { min-width: 230px; }
.ar-study-table td b { font-weight: 600; }
.ar-study-table td small { display: inline; margin-left: 4px; }
.ar-study-group td { background: var(--ar-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--ar-muted);
  text-transform: uppercase; padding-top: 7px; padding-bottom: 7px; }
.ar-summary-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1300px) { .ar-summary-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ar-summary-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ar-summary-5 { grid-template-columns: minmax(0, 1fr); } }

/* the company page's year of the average target (charts.targets) */
.ar-chart polyline.c-tline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.ar-chart .c-best { stroke: var(--ar-hold); fill: var(--ar-hold); }
.ar-chart polyline.c-best { stroke-dasharray: 5 4; }
.ar-chart text.c-best { stroke: none; }
.ar-chart text.c-price, .ar-chart circle.c-price { fill: var(--ar-line-price); stroke: none; }
.ar-co-legend .is-price::before { background: var(--ar-line-price); }
.ar-co-legend .is-avg::before { background: var(--ar-muted-strong); }
.ar-co-legend .is-best::before { background: var(--ar-hold); }
